onBeforeTaskSelected

在任务被选中之前触发

boolean onBeforeTaskSelected(string|number id);
idstring|number任务的ID
boolean决定事件的默认操作是否继续执行(true)或被阻止(false

Example

gantt.attachEvent("onBeforeTaskSelected", function(id){
    // 可以在这里添加自定义逻辑
    return true;
});

Details

此事件可以被阻止。返回 false 将阻止默认操作的发生。

See also
Back to top