eachParent

주어진 작업의 모든 상위 작업들을 간트 차트에서 반복 처리합니다.

void eachParent(function code,string | number startTask, [object master] );
codefunction각 작업 객체를 처리하는 콜백 함수
startTaskstring | number상위 작업들을 반복할 대상 작업의 ID
masterobject콜백 함수 내에서 'this'로 사용할 컨텍스트 객체

Example

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

See also
Back to top