跳到主要内容

isSummaryTask

信息

此方法仅在 PRO 版本中可用,因为在该版本中才可以指定任务的类型。否则,该方法将返回 false。

Description

检查指定任务是否为汇总

isSummaryTask: (task: Task) => boolean

Parameters

  • task - (required) Task - 任务对象

Returns

  • mode - (boolean) - true,如果任务是汇总任务。否则,false

Example

const task = gantt.getTask(10);
gantt.isSummaryTask(task); // ->false
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.