The onRowClicked event handler fires when the user clicks a row header in the JavaScript Scheduler component, after the default action has completed.
Declaration
DayPilot.Scheduler.onRowClicked(args)Parameters
args.row(DayPilot.Row) - clicked rowargs.x(number) - row header column index when row header columns are defined; available since 2023.1.5513args.ctrl(boolean) - Ctrl key stateargs.shift(boolean) - Shift key stateargs.meta(boolean) - Meta key stateargs.originalEvent(MouseEvent) - original click event object (available since 2023.4.5756)
Examples
JavaScript
const dp = new DayPilot.Scheduler("dp", {
rowClickHandling: "Enabled",
onRowClicked: (args) => {
console.log("Clicked row", args.row);
},
// ...
});
dp.init();Angular
<daypilot-scheduler [config]="config"></daypilot-scheduler>config: DayPilot.SchedulerConfig = {
rowClickHandling: "Enabled",
onRowClicked: (args) => {
console.log("Clicked row", args.row);
},
// ...
};React
<DayPilotScheduler
rowClickHandling="Enabled"
onRowClicked={onRowClicked}
{/* ... */}
/>const onRowClicked = (args) => {
console.log("Clicked row", args.row);
};Vue
<DayPilotScheduler
rowClickHandling="Enabled"
@rowClicked="onRowClicked"
<!-- ... -->
/>const onRowClicked = (args) => {
console.log("Clicked row", args.row);
};See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
Lite args missing: x
DayPilot