The multiselect.get() method returns an array of events that are currently selected in the JavaScript Scheduler component.
DayPilot.Scheduler.multiselect.get()This method has no parameters.
Returns an array of DayPilot.Event objects that are currently selected.
Use this method together with multi-selection settings such as allowMultiSelect to inspect the current selection state.
const scheduler = new DayPilot.Scheduler("dp", {
allowMultiSelect: true,
eventClickHandling: "Select",
onEventSelected: (args) => {
const selected = scheduler.multiselect.get();
console.log("Selected events", selected);
},
// ...
});
scheduler.init();DayPilot.Scheduler.multiselect.events()
DayPilot.Scheduler.multiselect.isSelected()
Event Multi-Selecting [doc.daypilot.org]