The events.list property (array) holds the event data used by the Queue component. You can use it to load Queue items.
Declaration
DayPilot.Queue.events.listDefault Value
[]Notes
The array items must follow the DayPilot.Event.data structure.
The
startandendproperties can be replaced byduration(a DayPilot.Duration object or a number specifying the duration in seconds).
The events will be displayed after calling init() or update().
Examples
JavaScript
const queue = new DayPilot.Queue("dp", {
// ...
});
queue.init();
// ...
const events = [
{
id: 1,
text: "Meeting",
duration: DayPilot.Duration.ofHours(2),
},
];
queue.update({events});Angular
<daypilot-queue [config]="config" [events]="events"></daypilot-queue>events = [
{
id: 1,
text: "Meeting",
duration: DayPilot.Duration.ofHours(2),
},
];
config: DayPilot.QueueConfig = {
// ...
};React
<DayPilotQueue
events={events}
{/* ... */}
/>const events = [
{
id: 1,
text: "Meeting",
duration: DayPilot.Duration.ofHours(2),
},
];Vue
<template>
<DayPilotQueue
:events="events"
<!-- ... -->
/>
</template><script setup>
const events = [
{
id: 1,
text: "Meeting",
duration: DayPilot.Duration.ofHours(2),
},
];
</script>See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot