onBeforeLinkUpdate

fires before a link is updated

boolean onBeforeLinkUpdate(string|number id,Link new_link);
idstring|numberthe link id
new_linkLinkthe new (updated) object of the link
booleandefines whether the default action of the event will be triggered (true) or canceled (false)

Example

gantt.attachEvent("onBeforeLinkUpdate", function(id,new_link){
    //any custom logic here
    return true;
});

Details

The event is blockable. Return false to cancel updating of the link.

See also
Back to top