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