onAfterTaskAutoSchedule
info
This functionality is available in the PRO edition only.
Description
Fires for each task which has been autoscheduled
onAfterTaskAutoSchedule: (task: Task, start: Date, link: Link, predecessor: Task) => void;
Parameters
task- (required) Task - the task objectstart- (required) Date - a new start datelink- (required) Link - the link object that creates the constraintpredecessor- (required) Task - the predecessor task object
Example
gantt.attachEvent("onAfterTaskAutoSchedule",function(task, start, link, predecessor){
// 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
- onAfterAutoSchedule
- onBeforeAutoSchedule
- onBeforeTaskAutoSchedule
- onCircularLinkError
- onAutoScheduleCircularLink