v7.3.0

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

No results

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 false to 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.

  • eventCls : String
    private

    CSS class to add to rendered events

  • A CSS class to apply to each event in the view on mouseover.

  • timeCellCls : String
    private

    CSS class to add to cells in the timeaxis column

  • Region to which columns are added when they have none specified

  • enableEventAnimations : Booleantrue
    DEPRECATED
    Deprecated:

    7.0.0 Deprecated enableEventAnimations. Use transition.changeEvent instead

    Set to false if you don't want event bar DOM updates to animate.

    Has a corresponding runtime enableEventAnimations property.

  • You can set this option to false to make the timeline panel start and end on the exact provided startDate/endDate w/o adjusting them.

  • Set to true to force the time columns to fit to the available space (horizontal or vertical depends on mode). Note that setting suppressFit to true, will disable forceFit functionality. Zooming cannot be used when forceFit is 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 true to prevent auto calculating of a minimal tickSize to always fit the content to the screen size. Setting this property on true will disable forceFit behaviour.

    Has a corresponding runtime suppressFit property.

  • A TimeAxis config object or instance, used to create a backing data store of 'ticks' providing the input date data for the time axis of timeline panel. Created automatically if none supplied.

    Has a corresponding runtime timeAxis 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
  • 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.

  • isTimelineBase : Booleantrue
    READONLY
    ADVANCED
    Identifies an object as an instance of TimelineBase class, or subclass thereof.
  • enableEventAnimations : Booleantrue
    DEPRECATED
    Deprecated:

    7.0.0 Deprecated enableEventAnimations. Use transition.changeEvent instead

    Set to false if you don't want event bar DOM updates to animate.

    Has a corresponding enableEventAnimations config.

  • Returns true if any of the events/tasks or feature injected elements (such as ResourceTimeRanges) are within the timeAxis

  • Set to true to force the time columns to fit to the available space (horizontal or vertical depends on mode). Note that setting suppressFit to true, will disable forceFit functionality. Zooming cannot be used when forceFit is set.

    Has a corresponding forceFit config.

  • Returns the partnered timelines.

  • Set to true to prevent auto calculating of a minimal tickSize to always fit the content to the screen size. Setting this property on true will disable forceFit behaviour.

    Has a corresponding suppressFit config.

  • timeAxis : TimeAxis
    READONLY

    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.

    • 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).

    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

    Type definitions