v7.3.0

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

No results

Configs

Configs are options you supply in a configuration object when creating an instance of this class
  • Specify true to 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 startDate and endDate properties

    • startDate : Date

      The start date of the selected time span

    • endDate : Date

      The end date of the selected time span

    Has a corresponding runtime selectedTimeSpan property.

Properties

Properties are getters/setters or publicly accessible variables on this class

Events

Events are triggered for certain actions in this class and can be listened for to react to those actions in your code

Event handlers

Event handlers are callbacks called as a result of certain actions in this class

CSS variables

CSS variables that can be set to adjust appearance
Name Description
--b-time-selection-background Time selection body background color
--b-time-selection-header-background Time selection header background
--b-time-selection-opacity Time selection body opacity
id: timeSelection

Source path

Scheduler/feature/TimeSelection.js

Demo

examples/time-selection

Contents