The onEventMoved event handler fires when the user drops a queue item after moving it and after the item has been updated.
DayPilot.Queue.onEventMoved(args)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
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.
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.");
};