DayPilot.Scheduler.rows.addChild

 The rows.addChild() method adds a new row as the last child of the specified resource.

Declaration

DayPilot.Scheduler.rows.add(parent, data);

Parameters

  • parent - specifies the parent resource - accepts either id (string | number) or DayPilot.Row object
  • data - the resource object to be added (see the format of resources array items)

Example

dp.rows.addChild(9, {
  name: "Resource 10",
  id: 10
});