getTaskByTime

returns a collection of tasks which occur during the specified period

array getTaskByTime( [Date from,Date to] );

Parameters

fromDatethe start date of the period
toDatethe end date of the period

Returns

arrayan array of tasks' objects

Example

var tasks = gantt.getTaskByTime(new Date(2013,3,10),new Date(2013,4,10)); 
for (var i=0; i<tasks.length; i++){
       alert(tasks[i].text);
}
// or
var tasks = gantt.getTaskByTime();//returns all tasks

Back to top