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) - returningfalsewill cancel the creation of a new link, returningtruewill 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