The multiselect.events() method returns the events that are currently selected in the Calendar.
Declaration
DayPilot.Calendar.multiselect.events()Parameters
This method has no parameters.
Return Value
Returns an array of selected DayPilot.Event objects.
Notes
This method replaces DayPilot.Calendar.selectedEvent().
Legacy inline shortcut example: Selected events.
Example
const dp = new DayPilot.Calendar("dp", {
// ...
});
dp.init();
const selectedEvents = dp.multiselect.events();
DayPilot.Modal.alert(`Selected event count: ${selectedEvents.length}`);See Also
Event Selecting [doc.daypilot.org]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot