Skip to main content

isSummaryTask

info

The method works only in the PRO version, since the possibility to specify the type of a task is available in that version only. Otherwise, the method will return false.

Description

Checks whether the specified task is summary

isSummaryTask: (task: Task) => boolean

Parameters

  • task - (required) Task - the object of a task

Returns

  • mode - (boolean) - true, if the task is summary. Otherwise, false

Example

const task = gantt.getTask(10);
gantt.isSummaryTask(task); // ->false