본문으로 건너뛰기

isTaskActive

Description​

Checks whether a task is effectively active

isTaskActive: (task: Task | string | number) => boolean

Parameters​

  • task - (required) Task | string | number - the task object or ID

Returns​

true if neither the task nor any of its ancestors has active: false. When you pass an unknown ID, the method returns false.

Example​

const active = gantt.isTaskActive(taskId);

Change log​

  • Added in v10.1
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.