Zum Hauptinhalt springen

onBeforeLinkDisplay

Description

Wird ausgelöst, nachdem die Links in das Gantt-Diagramm geladen wurden, bevor sie angezeigt werden

onBeforeLinkDisplay: (id: string | number, link: Link) => boolean;

Parameters

  • id - (required) string | number - die Link-ID
  • link - (required) Link - das Link-Objekt

Returns

  • result - (boolean) - definiert, ob die Standardaktion des Events ausgelöst wird (true) oder abgebrochen wird (false)

Example

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

Details

Das Ereignis ist blockierbar. Wenn false zurückgegeben wird, wird der Link nicht angezeigt

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.