Skip to main content

onTaskIdChange

Description

Fires when the id of a task is changed

onTaskIdChange: (id: string | number, new_id: string | number) => void;

Parameters

  • id - (required) string | number - the current task's id
  • new_id - (required) string | number - the new task's id

Example

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