跳到主要内容

onTaskDblClick

Description

当用户对任务进行双击时触发

onTaskDblClick: (id: string, e?: Event) => boolean;

Parameters

  • id - (required) string - 双击的任务的 ID

Returns

  • result - (boolean) - 定义事件的默认操作是否会被触发(true)或取消(false

Example

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

Details

该事件是可阻塞的。返回 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.