Skip to main content

onLinkCreated

Description​

Fires when a user creates a new link between tasks

onLinkCreated: (link: Link) => boolean;

Parameters​

  • link - (required) Link - the object of a new link

Returns​

  • result - (boolean) - returning false will cancel the creation of a new link, returning true will continue the default processing

Example​

gantt.attachEvent("onLinkCreated", function(link){
// your code here
return true;
});

Details​

The event fires before a new link is displayed, which allows you to cancel the creation of a link.

Change log​

  • added in v6.2.2
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.