DayPilot.Row.parent

The parent() method returns the parent of a JavaScript Scheduler row object in the resource tree hierarchy.

Declaration

DayPilot.Row.parent()

Parameters

This method has no parameters.

Return Value

Returns a DayPilot.Row object representing the parent row. If the row doesn't have a parent, this method returns null.

Example

const parentId = scheduler.rows.find("A")?.parent()?.id;

See Also

DayPilot.Row.children()

Resource Tree [doc.daypilot.org]

DayPilot.Row Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript