The onEventMouseLeave event handler fires when the cursor leaves the Calendar event element.
Available since 2025.3.6624.
DayPilot.Calendar.onEventMouseLeave(args)args.div - event element
args.e (DayPilot.Event) - object associated with the element
Use args.div to access the event DOM element.
JavaScript
const calendar = new DayPilot.Calendar("dp", {
onEventMouseLeave: (args) => {
args.div.classList.remove("calendar-event-hover");
},
// ...
});
calendar.init();Angular
<daypilot-calendar [config]="config"></daypilot-calendar>config: DayPilot.CalendarConfig = {
onEventMouseLeave: (args) => {
args.div.classList.remove("calendar-event-hover");
},
// ...
};React
<DayPilotCalendar
onEventMouseLeave={onEventMouseLeave}
{/* ... */}
/>const onEventMouseLeave = (args) => {
args.div.classList.remove("calendar-event-hover");
};Vue
<DayPilotCalendar
@eventMouseLeave="onEventMouseLeave"
<!-- ... -->
/>const onEventMouseLeave = (args) => {
args.div.classList.remove("calendar-event-hover");
};