onBeforeLinkUpdate

在链接更新之前触发

boolean onBeforeLinkUpdate(string|number id,Link new_link);
idstring|number链接的ID
new_linkLink更新后的链接对象
boolean指示事件的默认操作是否继续执行(true)或被阻止(false

Example

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

Details

此事件可以被阻止。返回false将防止链接被更新。

See also
Back to top