setParent

set the parent for a task

void setParent(Task task,number| string pid);
taskTaskthe task object
pidnumber| stringthe parent task id

Example

gantt.setParent(gantt.getTask(2), 20);
gantt.updateTask(2);

Back to top