DayPilot.Scheduler.events.add(e, data);
DayPilot.Action object that stores the action details.
Create a new event and save it in the queue.
var e = new DayPilot.Event({ start: new DayPilot.Date(), end: new DayPilot.Date().addHours(5), id: DayPilot.guid(), text: "New Event", resource: "E" }); dp.events.add(e);