DayPilot.Queue Constructor

Declaration

DayPilot.Queue(id[, options]);

Parameters

  • id - id of the placeholder <div> element
  • options - object, properties to be set

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.

Example

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();