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 headerargs.ctrl(boolean) - Ctrl key stateargs.shift(boolean) - Shift key stateargs.meta(boolean) - Meta key stateargs.originalEvent(MouseEvent) - original click event objectargs.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
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot