DayPilot.Scheduler.rows.addChild

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 object

  • data (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

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript