onBeforeExpand

在甘特图切换到全屏模式之前触发

boolean onBeforeExpand();
boolean决定默认事件动作是否继续执行(true)或被取消(false

Example

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

Related samples

Details

此事件可以被阻止。返回 false 将停止后续操作。

该事件属于 fullscreen 扩展,因此请确保通过 gantt.plugins 方法启用 fullscreen 插件。更多信息请参见 全屏模式 文章。

See also
Back to top