DayPilot.Queue.onEventClicked

The onEventClicked event handler fires after the default event click action configured using DayPilot.Queue.eventClickHandling.

Declaration

DayPilot.Queue.onEventClicked(args)

Parameters

Notes

Use this handler to react after the built-in click action has completed. If you need to cancel the default action before it runs, handle DayPilot.Queue.onEventClick instead.

Examples

JavaScript

const dp = new DayPilot.Queue("dp", {
  onEventClicked: (args) => {
    DayPilot.Modal.alert("Event clicked: " + args.e.text());
  },
  // ...
});
dp.init();

Angular

<daypilot-queue [config]="config"></daypilot-queue>
config: DayPilot.QueueConfig = {
  onEventClicked: (args) => {
    DayPilot.Modal.alert("Event clicked: " + args.e.text());
  },
  // ...
};

React

<DayPilotQueue
  onEventClicked={onEventClicked}
  {/* ... */}
/>
const onEventClicked = (args) => {
  DayPilot.Modal.alert("Event clicked: " + args.e.text());
};

Vue

<DayPilotQueue
  @eventClicked="onEventClicked"
  <!-- ... -->
/>
const onEventClicked = (args) => {
  DayPilot.Modal.alert("Event clicked: " + args.e.text());
};

See Also

DayPilot.Queue.onEventClick

DayPilot.Queue.eventClickHandling

DayPilot.Queue.multiselect.add()

DayPilot.Queue Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript