The links.list property (array) stores the Gantt link data.
Declaration
DayPilot.Gantt.links.listNotes
You can use this array for link bulk loading.
For the array item structure, see DayPilot.Link.data.
Call DayPilot.Gantt.init() during initialization or DayPilot.Gantt.update() after changing the link list.
Examples
JavaScript
const gantt = new DayPilot.Gantt("dp", {
tasks: [
{
id: "task-1",
start: "2015-01-01",
end: "2015-01-02",
text: "Task 1"
},
{
id: "task-2",
start: "2015-01-02",
end: "2015-01-03",
text: "Task 2"
}
],
links: [
{
id: "link-1",
from: "task-1",
to: "task-2",
type: "FinishToStart"
}
],
// ...
});
gantt.init();Angular
<daypilot-gantt [config]="config"></daypilot-gantt>config: DayPilot.GanttConfig = {
tasks: tasks
links: links
// ...
};React
<DayPilotGantt
tasks={tasks}
links={links}
{/* ... */}
/>Vue
<DayPilotGantt
:tasks="tasks"
:links="links"
<!-- ... -->
/>See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot