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
});
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.