DayPilot.Event Constructor

Declaration

DayPilot.Event(data);

Parameters

  • data (object) - object with init 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'
});

DayPilot for JavaScript, ASP.NET WebForms, ASP.NET MVC, Java