Перейти к основному содержимому

setParent

Description

Назначить родительскую задачу для задачи

setParent: (task: Task, pid: number | string) => void

Parameters

  • task - (required) Task - объект задачи
  • pid - (required) number | string - id родительской задачи

Example

gantt.setParent(gantt.getTask(2), 20);
gantt.updateTask(2);
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.