DayPilot.Scheduler.rows.collapse

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 returns true for rows that will be collapsed

Filter function signature:

function f(row) {}

Filter function parameters:

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

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript