DayPilot.Scheduler.onEventClick

Declaration

onEventClick(args)

Parameters

  • args.e (DayPilot.Event) - the event reference
  • args.div - event DOM element
  • 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

Notes

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

See Also

Example

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

api=1

Declaration

onEventClick(e)

Parameters

DayPilot for JavaScript, ASP.NET WebForms, ASP.NET MVC, Java