The onTimeRangeDoubleClicked event handler fires when the user double-clicks an existing time range selection in the JavaScript Scheduler component, after the default action configured by timeRangeDoubleClickHandling has been performed.
DayPilot.Scheduler.onTimeRangeDoubleClicked(args)args.start (DayPilot.Date) - start of the selected range
args.end (DayPilot.Date) - end of the selected range
args.resource (string | number) - selected resource id
Use DayPilot.Scheduler.onTimeRangeDoubleClick if you need to intercept the double-click before the default action is performed.
JavaScript
const dp = new DayPilot.Scheduler("dp", {
timeRangeDoubleClickHandling: "Enabled",
onTimeRangeDoubleClicked: (args) => {
console.log(args.start.toString(), args.end.toString(), args.resource);
},
// ...
});
dp.init();Angular
<daypilot-scheduler [config]="config"></daypilot-scheduler>config: DayPilot.SchedulerConfig = {
timeRangeDoubleClickHandling: "Enabled",
onTimeRangeDoubleClicked: (args) => {
console.log(args.start.toString(), args.end.toString(), args.resource);
},
// ...
};React
<DayPilotScheduler
timeRangeDoubleClickHandling="Enabled"
onTimeRangeDoubleClicked={onTimeRangeDoubleClicked}
{/* ... */}
/>const onTimeRangeDoubleClicked = (args) => {
console.log(args.start.toString(), args.end.toString(), args.resource);
};Vue
<DayPilotScheduler
timeRangeDoubleClickHandling="Enabled"
@timeRangeDoubleClicked="onTimeRangeDoubleClicked"
<!-- ... -->
/>const onTimeRangeDoubleClicked = (args) => {
console.log(args.start.toString(), args.end.toString(), args.resource);
};Time Range Double Click [doc.daypilot.org]
DayPilot.Scheduler.onTimeRangeDoubleClick