跳到主要内容

onLinkDblClick

Description

当用户对链接进行双击时触发

onLinkDblClick: (id: string | number, e?: Event) => boolean;

Parameters

  • id - (required) string | number - 被点击链接的 ID

Returns

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

Example

gantt.attachEvent("onLinkDblClick", 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.