onAfterAutoSchedule
info
This functionality is available in the PRO edition only.
Description
Fires when autoscheduling is done
onAfterAutoSchedule: (taskId: string | number, updatedTasks: any[]): void;
Parameters
taskId- (required) string | number - the root task idupdatedTasks- (required) array - an array with the ids of rescheduled tasks
Example
gantt.attachEvent("onAfterAutoSchedule",function(taskId, updatedTasks){
// any custom logic here
});
Related samples
Details
note
This event is defined in the auto_scheduling extension, so you need to activate the auto_scheduling plugin. Read the details in the Auto Scheduling article.
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
- onAfterTaskAutoSchedule
- onBeforeAutoSchedule
- onBeforeTaskAutoSchedule
- onCircularLinkError
- onAutoScheduleCircularLink