Skip to components
DEVELOPER REFERENCE · v4.0.0

TimeGrid API

Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.

TimeGrid10 props5 callbacks0 methods

Props10

TimeGrid props
NameTypeDescription
disabledOptionalboolean | undefinedDisables user interaction with the control.
daysRequired
readonly TimeGridDayLabel[]Inspect type
Weekday labels and identifiers displayed by the time grid.
cellsRequired
ReadonlySet<string>Inspect type
Keys of the currently selected time-grid cells.
focusedRequiredstringMarks the item or date that currently has keyboard focus.
weekendDaysRequired
readonly number[]Inspect type
Weekday numbers that should use the weekend presentation.
workingHoursOptional
TimeGridWorkingHours | undefinedInspect type
Working-time boundaries used to distinguish working and non-working cells.
gridLabelRequiredstringAccessible name for the time-grid matrix.
hourLabelRequired
(hour: number) => stringInspect type
Formats the label for an hour row.
cellLabelRequired
(day: TimeGridDayLabel, start: string, end: string, selected: boolean) => stringInspect type
Returns the accessible label for a day/time cell and its selected state.
matrixRefRequired
RefObject<HTMLDivElement>Inspect type
Reference to the time-grid container.

Events and callbacks5

TimeGrid events and callbacks
NameTypeDescription
onFocusRequired
(key: string) => voidInspect type
Called when focus moves to an item or control; the signature identifies the focused value.
onKeyDownRequired
(event: h.JSX.TargetedKeyboardEvent<HTMLButtonElement>, weekday: number, hour: number) => voidInspect type
Handles keyboard input; receives the keyboard event and any item/date context shown in the signature.
onClickRequired
(event: h.JSX.TargetedMouseEvent<HTMLButtonElement>, weekday: number, hour: number, selected: boolean) => voidInspect type
Handles activation of the control; receives the event and any component-specific context.
onPointerDownRequired
(event: h.JSX.TargetedPointerEvent<HTMLButtonElement>, weekday: number, hour: number, selected: boolean) => voidInspect type
Starts a pointer interaction on the supplied time-grid cell.
onPointerEnterRequired
(weekday: number, hour: number) => voidInspect type
Extends a pointer interaction to the supplied day/hour cell.

Methods0

No component-specific imperative methods. Use props and callbacks to control this component.