DependencyField
Chooses dependencies, connector sides and lag time for dependencies of a Task.
This field can be used as an editor for a Column. It is used as the default editor for the DependencyColumn.
The contextual task is the record property of this field's owner.
//<code-header>
fiddle.title = 'Dependency field';
//</code-header>
const project = new ProjectModel({
startDate : new Date(2020, 0, 1),
events : [
{ id : 2, name : 'Proof-read docs', startDate : '2020-01-02', endDate : '2020-01-05', effort : 0 },
{ id : 3, name : 'Release alpha', startDate : '2020-01-09', endDate : '2020-01-10', effort : 0 },
{ id : 4, name : 'Release beta', startDate : '2020-01-10', endDate : '2020-01-11', effort : 0 },
{ id : 5, name : 'Release RC', startDate : '2020-01-11', endDate : '2020-01-12', effort : 0 },
{ id : 6, name : 'Release GA', startDate : '2020-01-12', endDate : '2020-01-13', effort : 0 }
],
resources : [
{ id : 1, name : 'John Johnson' },
{ id : 2, name : 'Janet Janetson' },
{ id : 3, name : 'Kermit the Frog' },
{ id : 4, name : 'Kermit the Frog Jr.' }
],
assignments : [
{ id : 1, resource : 1, event : 2, units : 50 },
{ id : 2, resource : 3, event : 2 }
],
dependencies : [
{ id : 1, fromEvent : 2, toEvent : 3 },
{ id : 2, fromEvent : 3, toEvent : 4 },
{ id : 3, fromEvent : 4, toEvent : 6 }
]
});
new DependencyField({
appendTo : targetElement,
store : project.taskStore,
dependencyStore : project.dependencyStore,
otherSide : 'from',
ourSide : 'to',
value : project.firstChild.dependencies
});Configs
152
Configs
152Other
Delimiter between dependency ids in the field
A task field (id, wbsCode, sequenceNumber etc) that will be used when displaying and editing linked tasks. Defaults to Gantt#dependencyIdField
The dependency store
Set to false to hide the filter field
The other task's relationship with this field's contextual task.
This will be 'from' if we are editing predecessors, and 'to' if
we are editing successors.
This field's contextual task's relationship with the other task.
This will be 'to' if we are editing predecessors, and 'from' if
we are editing successors.
The sorters defining how to sort tasks in the drop down list, defaults to sorting by name field
ascending. See StoreSort for more information.
DOM
Float & align
Input element
Label
Layout
Misc
Scrolling
Properties
97
Properties
97Class hierarchy
CSS
DOM
Layout
Misc
Other
Functions
67
Functions
67Configuration
Events
Misc
Other
Widget hierarchy
Events
20
Events
20Event handlers
20
Event handlers
20Typedefs
7
Typedefs
7CSS variables
135
CSS variables
135| Name | Description |
|---|---|
--b-dependency-field-list-event-border-color | Border color for the event bar illustration in the dependency field list |
--b-dependency-field-list-dependency-terminal-color | Color of the illustrational terminals in the dependency field list |
--b-dependency-field-list-event-background | Background of the event bar illustration in the dependency field list |