onBeforeLinkDelete

fires before the user deletes a link

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

Example

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

Details

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

See also
Back to top