Back to Fullcalendar

drop

_docs-v3/event-dragging-resizing/drop.md

latest772 B
Original Source

Called when a valid external jQuery UI draggable has been dropped onto the calendar.

<div class='spec' markdown='1'> function( *date*, *jsEvent*, *ui*, *resourceId* ) { } </div>

date holds the Moment of where the draggable was dropped. It will either have a time, or be ambiguously-timed, depending on whether it was dropped on an all-day area or not.

jsEvent holds the jQuery event, with information like mouse coordinates.

ui holds the jQuery UI information.

resourceId will be populate if dropped on a Scheduler resource.

this holds the DOM element that has been dropped.

To see this callback function in action, view the droppable article or see this live demo.