DayPilot.Scheduler.onTimeRangeDoubleClicked

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.

Declaration

DayPilot.Scheduler.onTimeRangeDoubleClicked(args)

Parameters

  • 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

Notes

Use DayPilot.Scheduler.onTimeRangeDoubleClick if you need to intercept the double-click before the default action is performed.

Examples

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);
};

See Also

Time Range Double Click [doc.daypilot.org]

DayPilot.Scheduler.onTimeRangeDoubleClick

DayPilot.Scheduler.timeRangeDoubleClickHandling

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript