TimeSelection
Feature
Feature that allows selection of a time span in the time axis header. When a time span is selected in the header, a timeSelectionChange event is fired.
Configuration
You can configure the content of the header element using the headerRenderer function.
Not compatible with the HeaderZoom feature.
This feature is disabled by default. For info on enabling it, see GridFeatures.
Useful configs and functions
| Member | Description |
|---|---|
| tooltipTemplate | Template for the selection tooltip |
| headerRenderer | Custom renderer for the header highlight |
| selectedTimeSpan | Currently selected time span |
| timeSelectionChange | Fires when time selection changes |
See also
- HeaderZoom - Header drag-to-zoom
- AbstractTimeRanges - Base time ranges feature
- ScheduleContext - Schedule cell selection
No results
Configs
Configs are options you supply in a configuration object when creating an instance of this class-
Specify
trueto enable a drag-drop gesture to select the time span.Has a corresponding runtime enableDragSelect property.
-
The selected time span, which can be set using simple
startDateandendDatepropertiesHas a corresponding runtime selectedTimeSpan property.
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of TimeSelection class, or subclass thereof.
-
Specify
trueto enable a drag-drop gesture to select the time span.Has a corresponding enableDragSelect config.
-
Identifies an object as an instance of TimeSelection class, or subclass thereof.