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
Resource Tree [doc.daypilot.org]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot