DayPilot.Event Constructor

Declaration

DayPilot.Event(data);

Parameters

  • data (object) - object with event properties

This object will be stored unchanged as DayPilot.Event.data property.

Example

var e = new DayPilot.Event({
  start:new DayPilot.Date(), 
  end:(new DayPilot.Date()).addHours(5), 
  id: DayPilot.guid(), 
  text: "New Event", 
  resource:'E'
});