The DayPilot.Event constructor creates a client-side event object from the supplied event data.
Declaration
new DayPilot.Event(data)Parameters
data(object) - event data with event properties
Notes
The supplied object is stored unchanged in the DayPilot.Event.data property.
Example
const e = new DayPilot.Event({
start: new DayPilot.Date(),
end: new DayPilot.Date().addHours(5),
id: DayPilot.guid(),
text: "New Event",
resource: "E"
});See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot