Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

jQuery EasyUI Basic Plugins - Droppable

jQuery EasyUI Basic Plugins - Droppable


jQuery EasyUI Plugins jQuery EasyUI Plugins


Override the default defaults through $.fn.droppable.defaults.

Usage

Create droppable areas through markup.



Create droppable areas using javascript.





$('#dd').droppable({

    accept:'#d1,#d3'

});

property

Name Type Description Default value
accept selector Determine which draggable elements will be accepted. null
disabled boolean If set to true, droppable is disabled. false

Events

Name Parameters Description
onDragEnter e,source Triggered when a draggable element is dragged in. The source parameter refers to the dragged DOM element.
onDragOver e,source Triggered when a draggable element is dragged over. The source parameter refers to the dragged DOM element.
onDragLeave e,source Triggered when a draggable element is dragged away. The source parameter refers to the dragged DOM element.
onDrop e,source Triggered when a draggable element is dropped. The source parameter refers to the dragged DOM element.

Method

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

jQuery EasyUI Plugins jQuery EasyUI Plugins