CalendarBaseProps
Props
The following table outlines the props for the CalendarBaseProps:
| Name | Type | Default | Description |
|---|---|---|---|
| cellTemplate | ((props: CalendarCellProps) => node) | - | Specifies a custom template for rendering the content of each calendar cell. Can be a React node or a function that returns a React node. |
| depth | CalendarView.Month | Sets the most granular view the user can navigate down to.
For example, a | |
| disableFutureDays | boolean | false | When |
| disableOtherMonthNavigation | boolean | false | Prevents navigation when clicking on dates from other months in month view |
| disablePastDays | boolean | false | When |
| firstDayOfWeek | number | 0 | Specifies the first day of the week: |
| maxDate | Date | new Date(2099, 11, 31) | Specifies the maximum date that can be selected in the Calendar. |
| minDate | Date | new Date(1900, 0, 1) | Specifies the minimum date that can be selected in the Calendar. |
| showDaysOutsideCurrentMonth | boolean | true | When |
| start | CalendarView.Month | Specifies the initial view that the calendar renders. | |
| weekDaysFormat | WeekDaysFormats.Short | Specifies the format of the day names to be displayed in the week header. | |
| weekNumber | boolean | false | When |
| weekRule | WeekRule.FirstDay | Specifies the rule for defining the first week of the year. |
Events
The following table outlines the events for the CalendarBaseProps:
| Name | Type | Description |
|---|---|---|
| onViewChange | (event: ViewChangeEvent) => void | Triggers when the calendar navigates to a new view or date range. |