DayPilot.Queue.events.add

The events.add() method adds a new item to the Queue and displays it immediately.

The item is added to the end of the events.list array.

Declaration

DayPilot.Queue.events.add(e);

Parameters

The raw object structure is defined in DayPilot.Event.data.

Example (JavaScript)

Create a new event:

var e = new DayPilot.Event({
  id: 1, 
  text: "New Event",
  duration: 120
});
dpc.events.add(e);