The rows.collapse() method collapses the specified rows (tree nodes) of the JavaScript Scheduler.
Available since 2025.4.6661.
Declaration
DayPilot.Scheduler.rows.collapse(f)Parameters
f(function) - filter function that returnstruefor rows that will be collapsed
Filter function signature:
function f(row) {}Filter function parameters:
row(DayPilot.Row) - Scheduler row object
Example
Collapse all siblings of the target row:
const target = scheduler.rows.find("A1");
scheduler.rows.collapse(row => row.parent().id === target.parent().id);See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot