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
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot