setParent

set the parent for a task

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

Parameters

taskobjectthe task object
pidnumber| stringthe parent task id

Example

gantt.setParent(task, pid);

Back to top