onBeforeExpand
Description
在 gantt 展开为全屏之前触发
onBeforeExpand: () => boolean;
Returns
result- (boolean) - 定义事件的默认操作是否会被触发(true)或取消(false)
Example
gantt.attachEvent("onBeforeExpand",function(){
// 在这里插入您的自定义逻辑
return true;
});
Related samples
Details
该事件是可阻塞的。返回 false 将取消后续处理。
注释
该事件在 fullscreen 扩展中定义,因此你需要通过 gantt.plugins 方法激活 fullscreen 插件。请在 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.