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.
DayPilot.Queue.events.add(e);
The raw object structure is defined in DayPilot.Event.data.
Create a new event:
var e = new DayPilot.Event({ id: 1, text: "New Event", duration: 120 }); dpc.events.add(e);