The onTimeRangeDoubleClicked event handler fires in the JavaScript Calendar when a user double-clicks an existing time range, after the default action.
DayPilot.Calendar.onTimeRangeDoubleClicked(args)
args.start (DayPilot.Date) - selection start.
args.end (DayPilot.Date) - selection end.
args.resource (number | string) - selection resource in the resource calendar view.
Use DayPilot.Calendar.onTimeRangeDoubleClick for the companion callback that runs before the default action.
const dp = new DayPilot.Calendar("dp", {
onTimeRangeDoubleClicked: (args) => {
dp.message("Range starts at " + args.start);
},
// ...
});
dp.init();