CalendarMonthGrid API
Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.
CalendarMonthGrid20 props4 callbacks0 methods
Props20
| Name | Type | Description |
|---|---|---|
datesRequired |
| ISO dates displayed by the calendar grid or weekday row. |
systemOptional |
| Calendar system used to render month and year values. |
selectedDatesOptional |
| Independent ISO dates selected in multiple-selection mode. |
visibleMonthsOptional |
| Months shown together, used to distinguish outside dates. |
weekNumberOptional |
| Formats the week-number label for the supplied date. |
weekNumberLabelOptional | string | undefined | Accessible label for the week-number column. |
monthRequired |
| Month currently displayed, expressed as a library ISO date string. |
focusedDateRequired |
| ISO date of the day that currently has keyboard focus. |
referenceDateOptional |
| Reference ISO date used for Today and relative calendar presentation. |
selectionOptional |
| Current selected date/range, or the selection mode where the declared type is a mode string. |
previewOptional |
| Date range currently previewed while the user chooses a selection. |
previewInvalidOptional | boolean | undefined | Marks the preview as unavailable without changing the committed selection. |
previewDescriptionIdOptional | string | undefined | ID of the accessible explanation associated with invalid preview dates. |
showOutsideDaysRequired | boolean | Renders dates belonging to adjacent months in the current month grid. |
allowOutsideMonthSelectionRequired | boolean | Allows selecting visible dates from adjacent months. |
dayClassNameOptional |
| Additional day-cell classes, optionally computed from the date and day state. |
renderDayOptional |
| Custom content renderer for a day, receiving its ISO date and selected/disabled/preview state. |
isDisabledRequired |
| Return true when the supplied date must not be interactive. |
formatDayLabelRequired |
| Formats the accessible name for a calendar day. |
setDayRefRequired |
| Registers day elements so the calendar can manage keyboard focus. |
Events and callbacks4
| Name | Type | Description |
|---|---|---|
onFocusRequired |
| Called when focus moves to an item or control; the signature identifies the focused value. |
onPreviewRequired |
| Updates the date preview; undefined clears it. |
onKeyDownRequired |
| Handles keyboard input; receives the keyboard event and any item/date context shown in the signature. |
onSelectRequired |
| Called when the user selects an item. The signature identifies the selected value and any additional context. |
Methods0
No component-specific imperative methods. Use props and callbacks to control this component.