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

setParent

Description

Установить родителя для задачи

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

Parameters

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

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.