Zum Hauptinhalt springen

changeLinkId

Description

Ändert die Link-ID

changeLinkId: (id: string | number, new_id: string | number) => void

Parameters

  • id - (erforderlich) string | number - die aktuelle Link-ID
  • new_id - (erforderlich) string | number - die neue Link-ID

Example

gantt.addLink({
id:1,
source:1,
target:2,
type:1
});

gantt.changeLinkId(1, 5); //changes the link's id '1 -> 5' /*!*/

Details

Die Methode löst das Event onLinkIdChange 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.