onBeforeLinkUpdate

fires before a link is updated

boolean onBeforeLinkUpdate(string|number id,object new_item);
idstring|numberthe link id
new_itemobjectthe 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_item){
    //any custom logic here
    return true;
});

Details

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

See also
Back to top