getTaskByIndex

글로벌 작업 인덱스를 기준으로 작업을 반환합니다.

Task getTaskByIndex(number | string index);
indexnumber | string전체 작업 목록에서 작업의 위치 (0부터 시작)
Task주어진 인덱스에 해당하는 작업 객체

Example

const globalTaskIndex = gantt.getGlobalTaskIndex(19); // -> 10
 
const task = gantt.getTaskByIndex(10); 
// -> {id:"19", text:"Task name", type:"project", order:"10", progress:0.4, …}

See also
Back to top