The eventClickHandling property (string) specifies the default action for the onEventClick event in the monthly calendar.
DayPilot.Month.eventClickHandling"Enabled" - keeps the standard event click behavior and runs the configured click handlers.
"Disabled" - disables built-in event click handling.
"PostBack" - executes the event click action using PostBack (ASP.NET WebForms only).
"CallBack" - executes the event click action using CallBack (ASP.NET WebForms, ASP.NET MVC, and Java versions only).
"JavaScript" - uses the legacy client-side API and fires the client-side click handler instead of a server callback.
"Select" - selects the clicked event (DayPilot Pro only).
"ContextMenu" - shows the event context menu configured using DayPilot.Month.contextMenu.
"Bubble" - shows the bubble configured using DayPilot.Month.bubble (DayPilot Pro only).
"Enabled"Use DayPilot.Month.onEventClick to intercept the click before the default action is performed, and use DayPilot.Month.onEventClicked when you need to react after it finishes.
In legacy api=1 mode, the handling value defines the only action, and "JavaScript" uses the client-side callback pipeline.
JavaScript
const month = new DayPilot.Month("dp", {
eventClickHandling: "Select",
// ...
});
month.init();Angular
<daypilot-month [config]="config"></daypilot-month>config: DayPilot.MonthConfig = {
eventClickHandling: "Select",
// ...
};React
<DayPilotMonth
eventClickHandling="Select"
{/* ... */}
/>Vue
<DayPilotMonth
eventClickHandling="Select"
<!-- ... -->
/>DayPilot.Month.eventHoverHandling
Availability of this API item in DayPilot editions:
| Lite | Pro | |
|---|---|---|
| DayPilot for JavaScript |
Lite does not support: Bubble, Select