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

eachParent

Description

Перебирает все родительские задачи указанной задачи на диаграмме Гантта

eachParent: (code: GanttCallback, startTask: string | number, master?: any) => void

Parameters

  • code - (обязательно) function - функция, которая будет перебирать задачи. Принимает объект задачи в качестве параметра
  • startTask - (обязательно) string | number - id элемента, родительские задачи которого следует перебирать

Example

gantt.eachParent(function(task){
alert(task.text);
}, taskId);
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.