跳到主要内容

getTaskByWBSCode

Description

根据其 WBS 代码返回一个任务

getTaskByWBSCode: (code: string) => Task

Parameters

  • code - (required) string - 该任务的 WBS 代码

Returns

  • task - (Task) - 一个任务对象

Example

const task = gantt.getTaskByWBSCode("1.2");
// => {id:"t1", text:"Task #1, unscheduled: true, duration: 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.