DayPilot.Gantt.init

Initializes and renders the Gantt component.

Declaration

DayPilot.Gantt.init();

Example

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

<script>
  // create DayPilot.Gantt object, bind it to the placeholder div
  var gantt = DayPilot.Gantt("gantt-div");

  // configure
  gantt.tasks.list = [
{ start: "2014-10-01", end: "2014-10-03", id: 1, text: "Task 1", tags: { info: "info text" } }    
  ];

  // initialize and render the Gantt chart
  gantt.init();
</script>