DayPilot.Month.onEventDeleted

The onEventDeleted event handler fires after an event is removed from the monthly calendar using the event delete icon.

See also DayPilot.Month.onEventDelete, which fires before the event is actually removed from the calendar.

Declaration

DayPilot.Month.onEventDeleted(args)

Parameters

Examples

JavaScript

const dp = new DayPilot.Month("dp", {
  onEventDeleted: (args) => {
    console.log("Deleted:", args.e.text());
  },
  // ...
});
dp.init();

Angular

<daypilot-month [config]="config"></daypilot-month>
config: DayPilot.MonthConfig = {
  onEventDeleted: (args) => {
    console.log("Deleted:", args.e.text());
  },
  // ...
};

React

<DayPilotMonth
  onEventDeleted={onEventDeleted}
  {/* ... */}
/>
const onEventDeleted = (args) => {
  console.log("Deleted:", args.e.text());
};

Vue

<DayPilotMonth
  @eventDeleted="onEventDeleted"
  <!-- ... -->
/>
const onEventDeleted = (args) => {
  console.log("Deleted:", args.e.text());
};

See Also

Event Deleting [doc.daypilot.org]

DayPilot.Month.onEventDelete

DayPilot.Month Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript