Skip to main content

changeLinkId

Description

Changes the link's id

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

Parameters

  • id - (required) string | number - the current link's id
  • new_id - (required) string | number - the new link's id

Example

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

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

Details

The method fires the onLinkIdChange event.