DayPilot.Gantt.init

The init() method initializes and renders the Gantt component.

Declaration

DayPilot.Gantt.init();

Example

// HTML: <div id="gantt-div"></div>

const gantt = new DayPilot.Gantt("gantt-div", {
  tasks: [
    {
      start: "2034-10-01",
      end: "2034-10-03",
      id: 1,
      text: "Task 1",
      tags: {
        info: "info text"
      }
    }
  ],
  // ...
});

gantt.init();

See Also

DayPilot.Gantt Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript