changeTaskId

changes the task's id

void changeTaskId(string| number id,string| number new_id);
idstring| numberthe current task's id
new_idstring| numberthe new task's id

Example

gantt.addTask({
    id:10,
    text:"Task #5",
    start_date:"02-09-2013",
    duration:28
}, "project_2");
 
gantt.changeTaskId(10, 15); //changes the task's id '10 -> 15'

Details

The method invokes the onTaskIdChange event.

See also
Back to top