DayPilot.Gantt.tasks.find

The tasks.find() method finds a task by its ID.

Declaration

DayPilot.Gantt.tasks.find(id)

Parameters

  • id - task ID to find

Return Value

Returns a DayPilot.Task object if the task is found; otherwise null.

Notes

The supplied ID is converted to a string using .toString() and then compared using ===.

Example

const task = gantt.tasks.find("task-1");

See Also

DayPilot.Task Class

DayPilot.Gantt Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript