The onEventDoubleClick event handler fires when the user double-clicks an event in the monthly calendar component.
Declaration
DayPilot.Month.onEventDoubleClick(args)Parameters
args.e(DayPilot.Event) - the event referenceargs.preventDefault()- cancels the default action
Notes
In api=1 mode, the legacy signature is onEventDoubleClick(e).
Examples
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();
}
};See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot