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

addLink

Description

Добавляет новую зависимую связь

addLink: (link: any) => string | number

Parameters

  • link - (required) объект - объект ссылки

Returns

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

Example

const linkId = gantt.addLink({
id: 1,
source: 1,
target: 2,
type: gantt.config.links.finish_to_start
});

Details

Метод вызывает события onBeforeLinkAdd и onAfterLinkAdd.

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.