Skip to main content

onAfterTaskAdd

Description

Fires after the user adds a task to the Gantt chart

onAfterTaskAdd: (id: string | number, task: Task) => void;

Parameters

  • id - (required) string | number - the task id
  • task - (required) Task - the task object

Example

gantt.attachEvent("onAfterTaskAdd", function(id,task){
//any custom logic here
});