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 objectargs.external(boolean) - external source statusargs.position(number) - target vertical positionargs.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
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot