DayPilot.Task Constructor

Declaration

DayPilot.Task(data);

Parameters

  • data (object) - object with init properties

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

Example

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