The rows.addChild() method adds a new row to the JavaScript Scheduler as the last child of the specified resource.
Declaration
DayPilot.Scheduler.rows.addChild(parent, data)Parameters
parent(string | number | DayPilot.Row) - parent resource, specified using a resource ID or a DayPilot.Row objectdata(object) - resource object to add; use the same structure as resources array items
Example
dp.rows.addChild(9, {
name: "Resource 10",
id: 10
});See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot