The onEventDoubleClick event handler fires when the user double-clicks an event in the monthly calendar component.
DayPilot.Month.onEventDoubleClick(args)args.e (DayPilot.Event) - the event reference
args.preventDefault() - cancels the default action
In api=1 mode, the legacy signature is onEventDoubleClick(e).
JavaScript
const month = new DayPilot.Month("dp", {
onEventDoubleClick: (args) => {
if (args.e.id() === "3") {
args.preventDefault();
}
},
// ...
});
month.init();Angular
<daypilot-month [config]="config"></daypilot-month>config: DayPilot.MonthConfig = {
onEventDoubleClick: (args) => {
if (args.e.id() === "3") {
args.preventDefault();
}
},
// ...
};React
<DayPilotMonth
onEventDoubleClick={onEventDoubleClick}
{/* ... */}
/>const onEventDoubleClick = (args) => {
if (args.e.id() === "3") {
args.preventDefault();
}
};Vue
<DayPilotMonth
@eventDoubleClick="onEventDoubleClick"
<!-- ... -->
/>const onEventDoubleClick = (args) => {
if (args.e.id() === "3") {
args.preventDefault();
}
};