DayPilot.Scheduler.onRowRightClicked

The onRowRightClicked event handler fires when the user right-clicks a row header in the JavaScript Scheduler, after the default action configured by rowRightClickHandling has been performed.

Available since 2019.1.3559.

Declaration

DayPilot.Scheduler.onRowRightClicked(args)

Parameters

  • args.row (DayPilot.Row) - object representing the clicked row header

  • args.ctrl (boolean) - Ctrl key state

  • args.shift (boolean) - Shift key state

  • args.meta (boolean) - Meta key state

  • args.originalEvent (MouseEvent) - original click event object

  • args.x (number) - zero-based index of the row header column (available since 2023.4.5756)

Examples

JavaScript

const dp = new DayPilot.Scheduler("dp", {
  onRowRightClicked: (args) => {
    console.log("Row header right-clicked", args.row, args.x);
  },
  // ...
});
dp.init();

Angular

<daypilot-scheduler [config]="config"></daypilot-scheduler>
config: DayPilot.SchedulerConfig = {
  onRowRightClicked: (args) => {
    console.log("Row header right-clicked", args.row, args.x);
  },
  // ...
};

React

<DayPilotScheduler
  onRowRightClicked={onRowRightClicked}
  {/* ... */}
/>
const onRowRightClicked = (args) => {
  console.log("Row header right-clicked", args.row, args.x);
};

Vue

<DayPilotScheduler
  @rowRightClicked="onRowRightClicked"
  <!-- ... -->
/>
const onRowRightClicked = (args) => {
  console.log("Row header right-clicked", args.row, args.x);
};

See Also

DayPilot.Scheduler.onRowRightClick

DayPilot.Scheduler.rowRightClickHandling

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript