Skip to main content

isLinkExists

Description

Checks whether the specified link exists

isLinkExists: (id: string | number) => boolean

Parameters

  • id - (required) string | number - the link id

Returns

  • link - (boolean) - true, if such a link exists. Otherwise, false

Example

gantt.addLink({
id:1,
source:1,
target:2,
type:1
});
gantt.isLinkExists(1); // ->true