The rows.collapseAll() method collapses all nodes of the JavaScript Gantt Chart component task tree.
Available since 2024.4.6201.
See also rows.expandAll().
DayPilot.Gantt.rows.collapseAll();