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.
DayPilot.Scheduler.dispose()This method has no parameters.
After calling dispose(), the DayPilot.Scheduler object becomes unusable.
const dp = new DayPilot.Scheduler("dp", {
// ...
});
dp.init();
// ...
dp.dispose();