destructor
Description
Destroys a scheduler instance
destructor: () => void
Example
var myScheduler = Scheduler.getSchedulerInstance();
//destroying a scheduler instance
myScheduler.destructor();
Details
The method destroys a scheduler instance and calls the onDestroy event.
Calling the destructor will:
- clear the data loaded into a scheduler instance
- destroy the DataProcessor (if it is attached to the scheduler)
- detach the scheduler from DOM
- detach all DOM events attached via the title: method method
note
If you use a package that does not allow creating multiple instances of a scheduler (GPL or Individual editions), calling the scheduler destructor will make scheduler inaccessible until a page is reloaded.
Related API
Related Guides
Change log
- added in version 6.0
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.