Skip to components
DEVELOPER REFERENCE · v4.0.0

TimelineTrack API

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

TimelineTrack7 props2 callbacks0 methods

Props7

TimelineTrack props
NameTypeDescription
rowsRequired
readonly TimelineTrackItem<T>[]Inspect type
Timeline rows and their event data, in display order.
tooltipOptionalboolean | undefinedEnables hover/focus tooltips for chart or timeline values.
formatValueOptional
((value: number) => string) | undefinedInspect type
Formats the numeric value for display without changing its stored value.
getTooltipOptional
((event: T) => string) | undefinedInspect type
Returns tooltip text for a timeline event.
selectedOptionalstring | number | undefinedSelected value or selected-state flag; the declared type identifies which representation the control uses.
rangeRequired
TimelineTrackRangeInspect type
Finite bounds with end greater than start.
labelsOptional
Partial<TimelineTrackLabels> | undefinedInspect type
Localized text labels for the controls in this composition.

Events and callbacks2

TimelineTrack events and callbacks
NameTypeDescription
onSelectRequired
(id: string | number) => voidInspect type
Called when the user selects an item. The signature identifies the selected value and any additional context.
onEventChangeRequired
(id: string | number, event: T) => voidInspect type
Receives an event ID and the updated event after moving or resizing it.

Methods0

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