Skip to main content

onCircularLinkError

info

This functionality is available in the PRO edition only.

Description​

Fires when the circular reference has been detected and auto scheduling is not possible

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

Parameters​

  • link - (required) Link - the link object
  • group - (required) object - a group of tasks and links connected in a loop

Example​

gantt.attachEvent("onCircularLinkError",function(link, group){
// any custom logic here
});

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]
}
note

The method requires the auto_scheduling plugin to be activated.

Change log​

  • The group parameter is added in version 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.