The events.list property (array) stores the event data used by the JavaScript Scheduler component.
Declaration
DayPilot.Scheduler.events.listDefault Value
nullNotes
The array items must follow the DayPilot.Event.data structure.
The events are displayed after calling init() or update().
Examples
JavaScript
const dp = new DayPilot.Scheduler("dp", {
// ...
});
dp.init();
// ...
const events = [
{
start: "2025-12-18T14:00:00",
end: "2025-12-18T16:00:00",
id: 1,
text: "Meeting",
resource: "A",
},
];
dp.update({events});Angular
<daypilot-scheduler [config]="config" [events]="events"></daypilot-scheduler>events = [
{
start: "2025-12-18T14:00:00",
end: "2025-12-18T16:00:00",
id: 1,
text: "Meeting",
resource: "A",
},
];
config: DayPilot.SchedulerConfig = {
// ...
};React
const events = [
{
start: "2025-12-18T14:00:00",
end: "2025-12-18T16:00:00",
id: 1,
text: "Meeting",
resource: "A",
},
];<DayPilotScheduler
events={events}
{/* ... */}
/>Vue
const events = ref([
{
start: "2025-12-18T14:00:00",
end: "2025-12-18T16:00:00",
id: 1,
text: "Meeting",
resource: "A",
},
]);<DayPilotScheduler
:events="events"
<!-- ... -->
/>See Also
Event Loading [doc.daypilot.org]
DayPilot.Scheduler.events.load()
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot