ProjectLines
Feature
This feature draws the vertical lines in the schedule area, indicating project start/end dates and also its status date. The latter can be disabled with the showStatusDate config.
const project = new ProjectModel({ startDate : new Date(2020, 0, 1), events : [ { id : 1, name : 'Write docs', expanded : true, children : [ { id : 2, name : 'Proof-read docs', startDate : '2020-01-02', endDate : '2020-01-05' }, { id : 3, name : 'Release docs', startDate : '2020-01-09', endDate : '2020-01-10' } ] } ], dependencies : [ { id : 1, fromEvent : 2, toEvent : 3 } ] }); const gantt = new Gantt({ project, appendTo : targetElement, startDate : new Date(2019, 11, 31), endDate : new Date(2020, 0, 11), // autoHeight : true, height : 300, columns : [ { type : 'name', field : 'name', text : 'Name' } ] }); This feature is enabled by default.
Configs
Configs are options you supply in a configuration object when creating an instance of this class-
The date format to show in the header for the current time line (when showCurrentTimeLine is configured). See DateHelper for the possible formats to use.
-
Set to
trueto enable dragging and resizing of range elements in the header. Note that enabling dragging/resizing also enables showHeaderElements automatically. -
A Tooltip config object which is applied to the tooltip shown when hovering a TimeRange header element
Has a corresponding runtime hoverTooltip property.
-
Set to
falseto not render range elements into the time axis header. Note that header elements are required for interaction such as dragging/resizing, so enabling enableResizing will automatically enable this setting.Has a corresponding runtime showHeaderElements property.
-
A Boolean specifying whether to show tooltip while resizing range elements, or a Tooltip config object which is applied to the tooltip
-
A boolean specifying whether to show the project's statusDate
-
Internal listeners, that cannot be removed by the user.
-
The widget which this plugin is to attach to.
Has a corresponding runtime client property.
-
The interval (as amount of ms) defining how frequently the current timeline will be updated
-
Set to
falseto disable localization of this object.
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of Delayable class, or subclass thereof.
-
Identifies an object as an instance of Events class, or subclass thereof.
-
Identifies an object as an instance of Localizable class, or subclass thereof.
-
Identifies an object as an instance of ProjectLines class, or subclass thereof.
-
A class property getter for the default values of internal properties for this class.
-
Set to
falseto not render range elements into the time axis header. Note that header elements are required for interaction such as dragging/resizing, so enabling enableResizing will automatically enable this setting.Has a corresponding showHeaderElements config.
-
The Tooltip instance shown when hovering a TimeRange header element
Has a corresponding hoverTooltip config.
-
An empty array that can be used as a default value.
-
An empty object that can be used as a default value.
-
Identifies an object as an instance of AbstractTimeRanges class, or subclass thereof.
-
Identifies an object as an instance of InstancePlugin class, or subclass thereof.
-
Identifies an object as an instance of ProjectLines class, or subclass thereof.
-
Identifies an object as an instance of TimeRanges class, or subclass thereof.
-
Returns a copy of the full configuration which was used to configure this object.
-
This property is set to
truebefore theconstructorreturns. -
This property is set to
trueon entry to the destroy method. It remains on the objects after returning fromdestroy(). If isDestroyed istrue, this property will also betrue, so there is no need to test for both (for example,comp.isDestroying || comp.isDestroyed). -
The Widget which was passed into the constructor, which is the Widget we are providing extra services for.
Has a corresponding client config.
-
Get the global LocaleHelper
-
Get the global LocaleManager
-
Returns the Store used by this feature. This is always the owning Scheduler/Gantt's Project TimeRangeStore.
-
Returns the TimeRanges which occur within the client Scheduler's time axis.
Functions
Functions are methods available for calling on the class-
This optional class method is called when a class is mixed in using the mixin() method.
-
Registers this class type with its Factory
-
Generates the html to display in the tooltip during drag drop. If you want to customize the contents of the tooltip, supply a dragTipTemplate instead of overriding this function.
-
Internal function used to hook destroy() calls when using thisObj
-
Internal function used restore hooked destroy() calls when using thisObj
-
Auto detaches listeners registered from start, if set as detachable
-
Internal function used to run a callback function after an event is triggered
-
Removes all listeners registered to this object by the application.
-
This will merge a feature's (subclass of InstancePlugin) keyMap with it's client's keyMap.