eachTask

iterates over all child tasks in the Gantt chart

void eachTask(function code, [string| number parent,object master] );

Parameters

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 childs of the
specified parent
masterobjectthe object, that 'this' will refer to

Example

gantt.eachTask(function(task){alert(task.text);})

See also
Back to top