DayPilot.Month.onEventMoved

The onEventMoved event handler is called by the monthly calendar after the user drops an event at the target location (during drag and drop event moving).

This event is called after the default action set using eventMoveHandling. When this event handler is called, the event is already moved to the target location in the UI.

See also onEventMoved event which is called before the default action.

Declaration

DayPilot.Month.onEventMoved(args)

Parameters

  • args.e (DayPilot.Event) - the event being moved

  • args.newStart (DayPilot.Date) - the new event start

  • args.newEnd (DayPilot.Date) - the new event end

  • args.ctrl (boolean) - state of the `Ctrl` key on drop

  • args.meta (boolean) - state of the `Meta` key on drop (available since 2023.3.5604)

  • args.shift (boolean) - state of hte `Shift` key on drop

  • args.position (number) - target vertical position of the event within a cell (in the cell stacking mode)