Перейти к основному содержимому

isLinkExists

Description

Проверяет, существует ли указанная ссылка

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

Parameters

  • id - (required) string | number - идентификатор ссылки

Returns

  • link - (boolean) - true, если такая ссылка существует. В противном случае, false

Example

gantt.addLink({
id:1,
source:1,
target:2,
type:1
});
gantt.isLinkExists(1); // ->true
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.