跳到主要内容

isSplitTask

信息

此功能仅在 PRO 版中提供。

Description

检查指定任务是否已拆分

isSplitTask: (task: Task) => boolean

Parameters

  • task - (必填) Task - 任务对象

Returns

  • isSplit - (boolean) - 当任务被拆分时为 true,否则为 false

Example

const task = gantt.getTask(13);
// */} { id: 13, render:"split", text: "Task #2", ...}

if(gantt.isSplitTask(task)){
// 执行相应操作
}
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.