DayPilot.Scheduler.dispose

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

Declaration

DayPilot.Scheduler.dispose()

Parameters

This method has no parameters.

Notes

After calling dispose(), the DayPilot.Scheduler object becomes unusable.

Example

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

// ...

dp.dispose();

See Also

DayPilot.Scheduler.disposed()

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript