onLinkCreated

fires when a user creates a new link between tasks

boolean onLinkCreated(object link);
linkobjectthe object of a new link
booleanreturning `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

Back to top