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