setParent

set the parent for a task

void setParent(number| string task,number| string pid);

Parameters

tasknumber| stringthe task id
pidnumber| stringthe parent task id

Example

gantt.setParent(task, pid);

Back to top