DayPilot.Gantt.links.list

Stores the Gantt link data.

Declaration

DayPilot.Gantt.links.list (array)

Description

You can use this array for link bulk loading.

For the array item structure description see DayPilot.Link.data.

It is necessary to call init() (during initialization) or update() after changing the link list.

Example

Initialization

<div id="gantt"></div>

<script>
  var gantt = new DayPilot.Gantt("gantt");

  gantt.tasks.list =[
    {
      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"
    }
  ];

  gantt.links.list = [
    {
      id: "link-1",
      from: "task-1",
      to: "task-2",
      type: "FinishToStart"
    }
  ];

  gantt.init();

</script>