The onEventDeleted event handler fires after an event is removed from the JavaScript Calendar using the built-in delete icon.
Declaration
DayPilot.Calendar.onEventDeleted(args)Parameters
args.e(DayPilot.Event) - deleted event
Notes
Use DayPilot.Calendar.onEventDelete if you need to inspect or cancel the action before the event is actually removed.
Examples
JavaScript
const calendar = new DayPilot.Calendar("dp", {
onEventDeleted: (args) => {
console.log("Event deleted:", args.e.text());
},
// ...
});
calendar.init();Angular
<daypilot-calendar [config]="config"></daypilot-calendar>config: DayPilot.CalendarConfig = {
onEventDeleted: (args) => {
console.log("Event deleted:", args.e.text());
},
// ...
};React
<DayPilotCalendar
onEventDeleted={onEventDeleted}
{/* ... */}
/>const onEventDeleted = (args) => {
console.log("Event deleted:", args.e.text());
};Vue
<DayPilotCalendar
@eventDeleted="onEventDeleted"
<!-- ... -->
/>const onEventDeleted = (args) => {
console.log("Event deleted:", args.e.text());
};See Also
Event Deleting [doc.daypilot.org]
DayPilot.Calendar.onEventDelete
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot