Перейти к основному содержимому

getTaskByTime

Description

Возвращает коллекцию задач, происходящих в течение указанного периода

getTaskByTime: (from?: Date, to?: Date) => Array<Task>

Parameters

  • from - (optional) Date - начальная дата периода
  • to- (optional) Date - конечная дата периода

Returns

  • array - (Array <Task>) - массив объектов задач

Example

let tasks = gantt.getTaskByTime(new Date(2013,3,10),new Date(2013,4,10)); 
for (let i=0; i<tasks.length; i++){
alert(tasks[i].text);
}
// or
tasks = gantt.getTaskByTime();//returns all tasks
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.