onOptionsLoad
Description
Fires after sections of the Timeline/Units view have been updated
onOptionsLoad: () => void
Example
scheduler.attachEvent("onOptionsLoad", function (){
//any custom logic here
});
Details
When this event is fired, the following happens:
- Timeline/Unit view recalculates visible sections based on the current value of the y_unit or list property respectively;
- scheduler.resetLightbox is called;
- scheduler.setCurrentView is called.
The event is fired in several cases:
- On initialization of the Timeline/Units view, when sections are parsed for the first time;
- When sections are loaded with the data;
- Whenever scheduler.updateCollection is called.
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.