Collapse task in DayPilot.Gantt
2 years ago.
How do you collapse a row/task in DayPilot.Gantt?
In the API docs it refers to the methods collapse() and toggle(), however I always receive errors like TypeError: row.collapse is not a function
My code is as follows:
this.gantt.tasks.list.forEach((row: any) => {
row.collapse();
});
Using the following does not work either:
this.gantt.tasks.find(row.id).collapse();
Am I missing something?
Thank you!
DayPilot