3 - Elements
4 - Model
An activity link can be used to model any kind of dependency between two activities. In project planning applications a link would express a predecessor / successor relationship between two tasks, for example task A has to be finished before task B could begin. In other domains a link might simply express that two or more activities need to be scheduled together and that moving one of them requires all others to be moved, too.
A link can be added to the Gantt chart by calling this.gantt.getLinks().add(link: ActivityLink)
The link can be built using the ActivityLink constructor. It accepts an optional type field for a specific ActivityLink type.
ActivityLink types: "END_TO_START" | "START_TO_END" | "START_TO_START" | "END_TO_END"
Here is an example of how to create an ActivityLink.
ActivityRefs are available in events callbacks and observables.