The onEventSelected event is fired by the JavaScript Scheduler when the event selection changes (after the default action, which is selecting/deselecting the event in the UI).
See also onEventSelect event.
DayPilot.Scheduler.onEventSelected(args)args.e (DayPilot.Event) - the event reference
args.change ("selected" | "deselected") - selection change
args.selected (boolean) - current selection state (after the change)
args.ctrl (boolean) - Ctrl key state
args.meta (boolean) - Meta key state