The eventDeleteHandling property (string) enables the built-in event deleting icon and specifies the default delete action.
DayPilot.Month.eventDeleteHandling"Disabled" - hides the built-in delete icon and disables built-in delete handling.
"Update" - removes the event on the client side after DayPilot.Month.onEventDelete completes and then fires DayPilot.Month.onEventDeleted.
"CallBack" - delegates the delete action to server-side callback handling (ASP.NET WebForms, ASP.NET MVC, and Java versions only).
"PostBack" - delegates the delete action using PostBack (ASP.NET WebForms only).
"Disabled"Use DayPilot.Month.onEventDelete to confirm or cancel deletion before the event is removed, and use DayPilot.Month.onEventDeleted to react after the event has been deleted.
When built-in deleting is enabled, the delete icon is displayed on the right side of calendar events.
JavaScript
const month = new DayPilot.Month("dp", {
eventDeleteHandling: "Update",
// ...
});
month.init();Angular
<daypilot-month [config]="config"></daypilot-month>config: DayPilot.MonthConfig = {
eventDeleteHandling: "Update",
// ...
};React
<DayPilotMonth
eventDeleteHandling="Update"
{/* ... */}
/>Vue
<DayPilotMonth
eventDeleteHandling="Update"
<!-- ... -->
/>Event Deleting [doc.daypilot.org]