returns a task by its global task index
index | number | the task index in the tree (zero-based numbering) |
object | a task object |
var globalTaskIndex = gantt.getGlobalTaskIndex(19); // -> 10
var task = gantt.getTaskByIndex(10);
// -> {id:"19", text:"Task name", type:"project", order:"10", progress:0.4, …}