The onTimeRangeDoubleClick event handler fires when the user double-clicks an existing time range in the JavaScript Calendar component, before the default action is performed.
DayPilot.Calendar.onTimeRangeDoubleClick(args)
args.start (DayPilot.Date) - selection start
args.end (DayPilot.Date) - selection end
args.resource (number | string) - selection resource in Resources view
args.preventDefault() - cancels the default action
In api=1 mode, the legacy signature is onTimeRangeDoubleClick(start, end, column).
JavaScript
const calendar = new DayPilot.Calendar("dp", {
onTimeRangeDoubleClick: args => {
args.preventDefault();
},
// ...
});
calendar.init();Angular
<daypilot-calendar [config]="config"></daypilot-calendar>
config: DayPilot.CalendarConfig = {
onTimeRangeDoubleClick: args => {
args.preventDefault();
},
// ...
};React
<DayPilotCalendar
onTimeRangeDoubleClick={onTimeRangeDoubleClick}
{/* ... */}
/>const onTimeRangeDoubleClick = (args) => {
args.preventDefault();
};Vue
<DayPilotCalendar @timeRangeDoubleClick="onTimeRangeDoubleClick" <!-- ... --> />
const onTimeRangeDoubleClick = (args) => {
args.preventDefault();
};DayPilot.Calendar.onTimeRangeDoubleClicked
Resources View [doc.daypilot.org]