Droppable

Override defaults with $.fn.droppable.defaults.

Usage Example

Create a droppable area from markup.

Create a droppable area using javascript.


Properties

Name Type Description Default
accept selector Determine which draggable element will be accepted null
disabled boolean True to stop droppable false

Events

Name Parameters Description
onDragEnter e,source Fires when the draggable element is dragged enter. The source parameter indicate the dragged DOM element.
onDragOver e,source Fires when the draggable element is dragged over. The source parameter indicate the dragged DOM element.
onDragLeave e,source Fires when the draggable element is dragged leave. The source parameter indicate the dragged DOM element.
onDrop e,source Fires when the draggable element is dropped. The source parameter indicate the dragged DOM element.

Methods

Name Parameter Description
options none Return the options object.
enable none Enable the droppable functionality.
disable none Disable the droppable functionality.
?