The eventDeleteHandling property (string) enables the built-in event deleting icon and specifies the default delete action.
Declaration
DayPilot.Month.eventDeleteHandlingPossible Values
"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).
Default Value
"Disabled"Notes
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.
Examples
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"
<!-- ... -->
/>See Also
Event Deleting [doc.daypilot.org]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot