The dispose() method destroys the Queue component, removes the content of the placeholder <div>, and performs cleanup.
DayPilot.Queue.dispose()This method has no parameters.
After calling dispose(), the DayPilot.Queue object becomes unusable.
const queue = new DayPilot.Queue("queue", {
// ...
});
queue.init();
// ...
queue.dispose();