onBeforeCollapse
Description
在甘特图退出全屏模式并返回到普通模式之前
onBeforeCollapse: () => boolean;
Returns
result- (boolean) - 定义事件的默认操作是否将被触发 (true) 或取消 (false)
Example
gantt.attachEvent("onBeforeCollapse",function(){
// 在这里插入您的自定义 逻辑
return true;
});
Related samples
Details
该事件是可阻塞的。返回 false 将取消后续处理。
注释
此事件在 fullscreen 扩展中定义,因此需要通过 gantt.plugins 方法来激活该插件。请在 Full Screen Mode 一文中了解详细信息。
Related API
Related Guides
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.