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

getLinkNode

Description

Возвращает HTML-элемент указанной зависимости-ссылки

getLinkNode: (id: string | number) => HTMLElement

Parameters

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

Returns

  • node - (HTMLElement) - HTML-элемент ссылки

Example

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

gantt.getLinkNode(1); //-> <div className=​"gantt_task_link" link_id=​"1">​…​</div>​
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.