Skip to content

Commit

Permalink
chore(demo): CalendarRange, InputDateRange add API examples var…
Browse files Browse the repository at this point in the history
…iants (#9156)
  • Loading branch information
mdlufy authored Sep 24, 2024
2 parents 21adcca + f727659 commit 9741bfc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export default class Example {
new TuiDay(2018, 9, 30),
new TuiDay(2020, 2, 5),
new TuiDay(2300, 0, 1),
TuiDay.currentLocal(),
];

protected readonly disabledItemHandlerVariants: ReadonlyArray<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export default class PageComponent extends AbstractExampleTuiControl {
new TuiDay(2017, 11, 11),
new TuiDay(new Date().getFullYear() + 3, 1, 1),
TUI_LAST_DAY,
TuiDay.currentLocal(),
];

protected min: TuiDay = this.dayVariants[0]!;
Expand All @@ -65,7 +66,7 @@ export default class PageComponent extends AbstractExampleTuiControl {

protected minLength: TuiDayLike | null = null;

protected max = this.dayVariants[this.dayVariants.length - 1]!;
protected max = this.dayVariants[this.dayVariants.length - 2]!;

protected readonly markerHandlerVariants: readonly TuiMarkerHandler[] = [
(day: TuiDay) => (day.day % 2 === 0 ? TWO_DOTS : ONE_DOT),
Expand Down

0 comments on commit 9741bfc

Please sign in to comment.