DependencyCreation
Mixin
Mixin for Dependencies feature that handles dependency creation (drag & drop from terminals which are shown on hover). Requires Delayable to be mixed in alongside.
Configs
Configs are options you supply in a configuration object when creating an instance of this class-
Set to
falseto not allow creating dependencies -
Set it to
trueto allow dependency creation only for parent events (only applies to Scheduler Pro using theNestedEventsfeature). Normally the nested event container inside parent events cannot be scrolled when using dependencies, but by enabling this setting and limiting to where dependencies can be drawn scrolling will be enabled. -
falseto require a drop on a target event bar side circle to define the dependency type. If dropped on the event bar, thedefaultValueof the DependencyModeltypefield will be used to determine the target task side.Has a corresponding runtime allowDropOnEventBar property.
-
A tooltip config object that will be applied to the dependency creation Tooltip
-
falseto not show a tooltip while creating a dependency -
CSS class used for terminals
-
Where (on event bar edges) to display terminals. The sides are
'start','top','end'and'bottom'
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of DependencyCreation class, or subclass thereof.
-
Identifies an object as an instance of DependencyCreation class, or subclass thereof.
-
falseto require a drop on a target event bar side circle to define the dependency type. If dropped on the event bar, thedefaultValueof the DependencyModeltypefield will be used to determine the target task side.Has a corresponding allowDropOnEventBar config.
-
A template function that will be called to generate the HTML contents of the dependency creation tooltip. You can return either an HTML string or a DomConfig object.
Has a corresponding creationTooltipTemplate config.
Functions
Functions are methods available for calling on the class-
createConnector( )private
Creates a connector line that visualizes dependency source & target
-
createDependency( )internal
Create a new dependency from source terminal to target terminal
-
onMouseMove( )private
Update connector line showing dependency between source and target when mouse moves. Also check if mouse is over a valid target terminal
-
Create a new dependency if mouse release over valid terminal. Hides connector
-
onTerminalMouseOut( )private
Remove hover styling when mouse leaves terminal. Also hides terminals when mouse leaves one it and not creating a dependency.
-
onTerminalPointerDown( )private
Start creating a dependency when mouse is pressed over terminal
-
onTimeSpanMouseEnter( )private
Show terminals when mouse enters event/task element
-
onTimeSpanMouseLeave( )private
Hide terminals when mouse leaves event/task element
-
refreshCreationTooltip( )private
Update dependency creation tooltip
-
removeConnector( )private
Remove connector
-
abort( )
Aborts dependency creation, removes proxy and cleans up listeners