The dispose() method destroys the Navigator control, removes the content of the placeholder <div>, and cleans up the object.
DayPilot.Navigator.dispose()This method has no parameters.
After calling dispose(), the DayPilot.Navigator object becomes unusable.
const nav = new DayPilot.Navigator("dp", {
// ...
});
nav.init();
// ...
nav.dispose();