DayPilot.Scheduler.onEventClick

The onEventClick event is fired before the default event click action (defined using eventClickHandling property).

Declaration

DayPilot.Scheduler.onEventClick(args);

Parameters

  • args.e (DayPilot.Event) - the event reference
  • args.div - event DOM element
  • args.control - DayPilot.Scheduler instance
  • args.ctrl - true if Ctrl key has been pressed
  • args.meta - true if Meta key has been pressed
  • args.shift - true if Shift key has been pressed
  • args.originalEvent - original event click object (MouseEvent)
  • args.preventDefault() - cancels the default action set using eventClickHandling property

See Also

Example

dp.onEventClick = function(args) {
  if (args.e.id() === "3") {
    args.preventDefault();
  }
};

api=1

Declaration

onEventClick(e)

Parameters