Skip to main content

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 id
  • updatedTasks - (required) array - an array with the ids of rescheduled tasks

Example

gantt.attachEvent("onAfterAutoSchedule",function(taskId, updatedTasks){
// any custom logic here
});

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.