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