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

onCircularLinkError

информация

This functionality is available in the PRO edition only.

Description

Срабатывает, когда обнаружена циклическая ссылка и автоматическое планирование невозможно

onCircularLinkError: (link: Link, group: any) => void;

Parameters

  • link - (required) Link - объект ссылки
  • group - (required) object - группа задач и связей, образующая цикл

Example

gantt.attachEvent("onCircularLinkError",function(link, group){
// любая ваша логика здесь
});

Details

The group parameter presents an object which includes a group of tasks and links connected in a loop.

{ 
tasks: [//ids of tasks connected in a loop],
links: [//ids of links connected in a loop]
}
заметка

Метод требует, чтобы плагин auto_scheduling был активирован.

Change log

  • Параметр group добавлен в версии 4.1.
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.