onBeforeLinkUpdate
Description
Fires before a link is updated
onBeforeLinkUpdate: (id: string | number, new_link: Link) => boolean;
Parameters
id- (required) string | number - the link idnew_link- (required) Link - the new (updated) object of the link
Returns
result- (boolean) - defines 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.