onOptionsLoad
Description
在 Timeline/Units 视图的部分内容更新后触发
onOptionsLoad: () => void
Example
scheduler.attachEvent("onOptionsLoad", function (){
//这里写任何自定义逻辑
});
Details
当发生以下情况时,此事件会被触发:
- Timeline/Unit 视图根据当前的 y_unit 或 list 属性设置,重新计算哪些部分是可见的;
- 执行了 scheduler.resetLightbox;
- 执行了 scheduler.setCurrentView。
你会在以下几种场景中看到此事件被触发:
- Timeline/Units 视图初始化并首次解析部分内容时;
- 使用 data 加载部分内容时;
- 每次调用 scheduler.updateCollection 时。
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.