iterates over all child tasks of a specific task or the of whole Gantt chart

void eachTask(function code, [string|number parent,object master] );
codefunctiona function that will iterate over tasks. Takes a task object as a parameter
parentstring|numberthe parent id. If specified, the function will iterate over children of the
specified parent
masterobjectthe object, that 'this' will refer to




The method uses depth-first tree traversal from left to right to iterate over all tasks. Each parent node is visited before its child.

See also
Back to top