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 objectgroup- (required) object - a group of tasks and links connected in a loop
Example
gantt.attachEvent("onCircularLinkError",function(link, group){
// any custom logic here
});
Related samples
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.
Related API
- auto_scheduling
- auto_scheduling_descendant_links
- auto_scheduling_initial
- auto_scheduling_move_projects
- auto_scheduling_project_constraint
- auto_scheduling_strict
- auto_scheduling_use_progress
- findCycles
- isCircularLink
- onAfterAutoSchedule
- onAfterTaskAutoSchedule
- onBeforeAutoSchedule
- onBeforeTaskAutoSchedule
- onAutoScheduleCircularLink
Related Guides
Change log
- The group parameter is added in version 4.1.