The onEventSelected event handler fires after the calendar applies an event selection change.
Declaration
DayPilot.Calendar.onEventSelected(args)
Parameters
args.e- event whose selection state has changed.args.selected(boolean) - current selection state.args.ctrl(boolean) - indicates whether the Ctrl/Command multi-select modifier was used.args.meta- additional selection metadata (description pending).
Notes
This callback runs after the selection change has been applied.
Example
const dp = new DayPilot.Calendar("dp", {
onEventSelected: (args) => {
if (args.selected) {
dp.message(args.e.data.text);
}
},
// ...
});
dp.init();See Also
DayPilot.Calendar.onEventSelect
Event Selecting [doc.daypilot.org]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot