onBeforeLinkDelete

fires before the user deletes a link

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

Example

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

Details

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

See also
Back to top