DayPilot.Gantt.dispose

 The dispose() method destroys the JavaScript Gantt Chart component. It removes the content of the placeholder <div>, unbinds the DOM events and the cleans up the DayPilot.Gantt object so it can be garbage-collected.

After calling dispose() the DayPilot.Gantt object becomes unusable.

Declaration

DayPilot.Gantt.dispose();