跳转到主要内容

onBeforeExpand

Description

当用户点击展开图标,将调度器从原始大小切换到"全屏"时触发。

onBeforeExpand: () => boolean

Returns

  • result - (boolean) - 指示默认事件动作是否继续执行(true)或被阻止(false

Example

scheduler.attachEvent("onBeforeExpand",function(){
// 可以在这里添加自定义逻辑
return true;
});

Details

注释

该事件需要启用 expand 插件。

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.