DayPilot.Queue.onEventMoved

The onEventMoved event handler fires when the user drops a queue item after moving it and after the item has been updated.

Declaration

DayPilot.Queue.onEventMoved(args)

Parameters

  • args.e (DayPilot.Event) - event object

  • args.external (boolean) - external source status

  • args.position (number) - target vertical position

  • args.source (DayPilot.Queue | DayPilot.Scheduler) - source component

Notes

Use this handler for follow-up work that should run only after the move has completed. If you need to cancel or validate the move before the Queue updates the item, handle DayPilot.Queue.onEventMove instead.

Examples

JavaScript

const dp = new DayPilot.Queue("dp", {
  onEventMoved: (args) => {
    DayPilot.Modal.alert("Event moved.");
  },
  // ...
});
dp.init();

Angular

<daypilot-queue [config]="config"></daypilot-queue>
config: DayPilot.QueueConfig = {
  onEventMoved: (args) => {
    DayPilot.Modal.alert("Event moved.");
  },
  // ...
};

React

<DayPilotQueue
  onEventMoved={onEventMoved}
  {/* ... */}
/>
const onEventMoved = (args) => {
  DayPilot.Modal.alert("Event moved.");
};

Vue

<DayPilotQueue
  @eventMoved="onEventMoved"
  <!-- ... -->
/>
const onEventMoved = (args) => {
  DayPilot.Modal.alert("Event moved.");
};

See Also

DayPilot.Queue.onEventMove

DayPilot.Queue Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript