eachParent

iterates over all parent tasks of the specified task in the Gantt chart

void eachParent(function code,string | number startTask, [object master] );
codefunctiona function that will iterate over tasks. Takes a task object as a parameter
startTaskstring | numberthe id of the item the parent tasks of which should be iterated over
masterobjectthe object, that 'this' will refer to

Example

gantt.eachParent(function(task){
    alert(task.text);
}, taskId);

See also
Back to top