跳到主要内容

onTaskMultiSelect

Description

任务选择状态已更改后触发(任务已被选中/取消选中)

onTaskMultiSelect: (id: string | number, state: boolean, e: Event) => void;

Parameters

  • id - (required) string | number - 任务的 ID
  • state - (required) boolean - true 表示任务已被选中,false 表示未选中
  • e - (required) Event - 一个原生事件对象

Example

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

Details

注释

此事件在 multiselect 扩展中定义,因此需要启用 multiselect 插件。请在 Multi-Task Selection 文章中阅读详情。

该事件会对范围内的每个任务进行调用。

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.