onBeforeAutoSchedule
info
This functionality is available in the PRO edition only.
Description
Fires before auto scheduling
onBeforeAutoSchedule: (taskId: string | number) => boolean;
Parameters
taskId- (required) string | number - the root task id
Returns
result- (boolean) - defines whether the default action of the event will be triggered (true) or canceled (false)
Example
gantt.attachEvent("onBeforeAutoSchedule",function(taskId){
// any custom logic here
return true;
});
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.
The event is blockable. Returning false will cancel further processing.
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
- onBeforeTaskAutoSchedule
- onCircularLinkError
- onAutoScheduleCircularLink