The onEventDoubleClicked event handler fires after an event has been double-clicked and the default action has completed.
Declaration
DayPilot.Calendar.onEventDoubleClicked(args)
Parameters
args.e(DayPilot.Event) - the event reference
Examples
JavaScript
const calendar = new DayPilot.Calendar("dp", {
onEventDoubleClicked: args => {
DayPilot.Modal.alert("Event double-clicked: " + args.e.text());
},
// ...
});
calendar.init();
Angular
<daypilot-calendar [config]="config"></daypilot-calendar>
config: DayPilot.CalendarConfig = {
onEventDoubleClicked: args => {
DayPilot.Modal.alert("Event double-clicked: " + args.e.text());
},
// ...
};
React
<DayPilotCalendar
onEventDoubleClicked={args => {
DayPilot.Modal.alert("Event double-clicked: " + args.e.text());
}}
{/* ... */}
/>
Vue
<DayPilotCalendar @eventDoubleClicked="onEventDoubleClicked" <!-- ... --> />
const onEventDoubleClicked = args => {
DayPilot.Modal.alert("Event double-clicked: " + args.e.text());
};See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot