DayPilot.Queue(id[, options]);
You can set the Queue properties and event handlers using options parameter. It accepts all Queue properties and events and also several special properties described in the update() method documentation.
HTML
<div id="queue"></div>
JavaScript
var queue = new DayPilot.Queue("queue"); queue.events.list = [ { id: 1, start: "2022-01-01T00:00:00", end: "2022-01-01T15:00:00", text: "Event 1" } ]; queue.init();
Initialization with properties
var queue = new DayPilot.Queue("queue", { events: [ { id: 1, start: "2022-01-01T00:00:00", end: "2022-01-01T15:00:00" } ], }); queue.init();