Skip to main content

onBeforeLinkDisplay

Description

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

onBeforeLinkDisplay: (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("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