DayPilot.Gantt.update

The update() method refreshes the Gantt chart control after you change its properties.

Declaration

DayPilot.Gantt.update([options])

Parameters

  • options (object, optional) - object with properties and event handlers to be updated

Notes

It refreshes the component, including time headers, background cells, tasks, and links.

Example

const gantt = new DayPilot.Gantt("dp", {
  // ...
});
gantt.init();

// display the next month
gantt.update({
  startDate: gantt.startDate.addMonths(1)
});

See Also

DayPilot.Gantt Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript