跳到主要内容

onTaskSelected

Description

当用户选择一个任务时触发

onTaskSelected: (id: string | number) => void;

Parameters

  • id - (必填)string,number - 任务的 id

Example

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

Details

该事件会在多选范围内的每个任务上被触发。

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.