DayPilot.Scheduler.onEventDelete

The onEventDelete event is fired by the JavaScript Scheduler component when a user clicks the built-in delete icon.

Declaration

DayPilot.Scheduler.onEventDelete(args)

Parameters

  • args.async (boolean) - set to true to enable asynchronous processing (available since 2023.1.5529)
  • args.e (DayPilot.Event) - the event reference
  • args.loaded() - call this method to continue event processing (when args.async is set to true) (available since 2023.1.5529)
  • args.preventDefault() - cancels the default action

Example

dp.onEventDelete = function(args) {
  if (!confirm("Do you really want to delete this event?")) {
    args.preventDefault();
  }
};

api=1

Declaration

DayPilot.Scheduler.onEventDelete(e)

Parameters