DayPilot.Calendar.onEventClicked

The onEventClick event handler is fired by the JavaScript Calendar component when a user clicks a calendar event, after the default action (the default action can be set using the eventClickHandling property).

See also onEventClick.

Declaration

DayPilot.Calendar.onEventClicked(args)

Parameters

  • args.e (DayPilot.Event) - the event reference

  • args.ctrl (boolean) - Ctrl key status

  • args.meta (boolean) - Meta key status

  • args.shift (boolean) - Shift key status (available since 2023.4.5773)

  • args.originalEvent - original event click object (MouseEvent)

See Also

Example

{
  onEventClicked: (args) => {
    DayPilot.Modal.alert("Event clicked: " + args.e.text());
  },
  // ...
}