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