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
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot