Zum Hauptinhalt springen

addLink

Description

Fügt eine neue Abhängigkeitsverknüpfung hinzu

addLink: (link: any) => string | number

Parameters

  • link - (erforderlich) Objekt - das Link-Objekt

Returns

  • id - (string | number) - die ID des Links

Example

const linkId = gantt.addLink({
id: 1,
source: 1,
target: 2,
type: gantt.config.links.finish_to_start
});

Details

Die Methode löst die Ereignisse onBeforeLinkAdd und onAfterLinkAdd aus.

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.