DayPilot.Row.parent

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

Declaration

DayPilot.Row.parent();

Return Value

A DayPilot.Row object representing the parent node. If the row doesn't have a parent, null is returned.

Example

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