TimelineBase
Abstract
Abstract base class used by timeline based components such as Scheduler and Gantt. Based on Grid, supplies a "locked" region for columns and a "normal" for rendering of events etc.
See also
- Scheduler - Scheduler widget
- ViewPreset - Time axis configuration
- TimeAxis - Time axis store
Configs
Configs are options you supply in a configuration object when creating an instance of this class-
Decimal precision used when displaying durations, used by tooltips and DurationColumn. Specify
falseto use raw value -
Get/set end date limit of the timeline. Actions such as timeline scrolling, all types of timeline zooms and shifts will respect this limit.
Has a corresponding runtime maxDate property.
-
Get/set start date limit of the timeline. Actions such as timeline scrolling, all types of timeline zooms and shifts will respect this limit.
Has a corresponding runtime minDate property.
-
CSS class to add to rendered events
-
A CSS class to apply to each event in the view on mouseover.
-
CSS class to add to cells in the timeaxis column
-
Region to which columns are added when they have none specified
-
Deprecated:
7.0.0 Deprecated
enableEventAnimations. Usetransition.changeEventinsteadSet to
falseif you don't want event bar DOM updates to animate.Has a corresponding runtime enableEventAnimations property.
-
Set to
trueto force the time columns to fit to the available space (horizontal or vertical depends on mode). Note that setting suppressFit totrue, will disableforceFitfunctionality. Zooming cannot be used whenforceFitis set.Has a corresponding runtime forceFit property.
-
When set, the text in the major time axis header sticks in the scrolling viewport as long as possible.
-
Set to
trueto prevent auto calculating of a minimal tickSize to always fit the content to the screen size. Setting this property ontruewill disable forceFit behaviour.Has a corresponding runtime suppressFit property.
-
The backing view model for the visual representation of the time axis. Either a real instance or a simple config object.
Has a corresponding runtime timeAxisViewModel property.
-
A valid JS day index between 0-6 (0: Sunday, 1: Monday etc.) to be considered the start day of the week. When omitted, the week start day is retrieved from the active locale class.
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of TimelineBase class, or subclass thereof.
-
Get/set end date limit of the timeline. Actions such as timeline scrolling, all types of timeline zooms and shifts will respect this limit.
Has a corresponding maxDate config.
-
Get/set start date limit of the timeline. Actions such as timeline scrolling, all types of timeline zooms and shifts will respect this limit.
Has a corresponding minDate config.
-
Identifies an object as an instance of TimelineBase class, or subclass thereof.
-
Deprecated:
7.0.0 Deprecated
enableEventAnimations. Usetransition.changeEventinsteadSet to
falseif you don't want event bar DOM updates to animate.Has a corresponding enableEventAnimations config.
-
Returns
trueif any of the events/tasks or feature injected elements (such as ResourceTimeRanges) are within the timeAxis -
Set to
trueto force the time columns to fit to the available space (horizontal or vertical depends on mode). Note that setting suppressFit totrue, will disableforceFitfunctionality. Zooming cannot be used whenforceFitis set.Has a corresponding forceFit config.
-
Returns the partnered timelines.
- To add a new partner see addPartner method.
- To remove existing partner see removePartner method.
-
Set to
trueto prevent auto calculating of a minimal tickSize to always fit the content to the screen size. Setting this property ontruewill disable forceFit behaviour.Has a corresponding suppressFit config.
-
A backing data store of 'ticks' providing the input date data for the time axis of timeline panel.
Has a corresponding timeAxis config.
-
Returns the TimeAxisColumn instance
-
Returns the subGrid containing the time axis
-
Returns the html element for the subGrid containing the time axis
-
The internal view model, describing the visual representation of the time axis.
Has a corresponding timeAxisViewModel config.
Functions
Functions are methods available for calling on the class-
initScroll( )private
Overrides initScroll from Grid, listens for horizontal scroll to do virtual event rendering
-
Refreshes the grid with transitions enabled.
-
applyStartEndParameters( )private
Applies the start and end date to each event store request (formatted in the same way as the start date field, defined in the EventStore Model class).