Skip to main content

onBeforeLinkDelete

Description​

Fires before the user deletes a link

onBeforeLinkDelete: (id: string | number, link: Link) => boolean;

Parameters​

  • id - (required) string | number - the link id
  • link - (required) Link - the link object

Returns​

  • result - (boolean) - defines 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.

Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.