onBeforeLinkDisplay

fires after the links have been loaded to the Gantt chart but before they are displayed

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

Example

gantt.attachEvent("onBeforeLinkDisplay", function(id, link){
    if (link.type == gantt.config.links.finish_to_start){
        return true;
    }
    return false;
});

Details

The event is blockable. Returning false will prevent the link from being displayed

See also
Back to top