The onEventDoubleClick event handler fires when the user double-clicks an event, before the default action is performed.
DayPilot.Calendar.onEventDoubleClick(args)
args.e (DayPilot.Event) - the event reference
args.preventDefault() - cancels the default double-click action
In api=1 mode, the legacy signature is onEventDoubleClick(e).
const calendar = new DayPilot.Calendar("dp", {
onEventDoubleClick: args => {
if (args.e.id() === "3") {
args.preventDefault();
}
},
// ...
});
calendar.init();
<daypilot-calendar [config]="config"></daypilot-calendar>
config: DayPilot.CalendarConfig = {
onEventDoubleClick: args => {
if (args.e.id() === "3") {
args.preventDefault();
}
},
// ...
};
<DayPilotCalendar
onEventDoubleClick={args => {
if (args.e.id() === "3") {
args.preventDefault();
}
}}
{/* ... */}
/>
<DayPilotCalendar @eventDoubleClick="onEventDoubleClick" <!-- ... --> />
const onEventDoubleClick = args => {
if (args.e.id() === "3") {
args.preventDefault();
}
};