跳到主要内容

onBeforeMultiSelect

Description

在选择一个任务或一组任务之前触发

onBeforeMultiSelect: (e: Event) => void;

Parameters

  • e - (必填) Event - 原生事件对象

Example

gantt.attachEvent("onBeforeMultiSelect", function(e){
// 在这里插入您的自定义逻辑
return true;
});

Details

注释

此事件定义在 multiselect 扩展中,因此你需要激活 multiselect 插件。详见 多任务选择 文章。

此事件是可阻塞的,返回 false 将取消对任务的多选。

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.