(^552) ❘ APPENDIX J DRAGGABLE AND DROPPABLE
droppable(options) Makes the selected element(s) droppable.
Options can be specifi ed by passing an object
literal as the fi rst argument using key, value
pairs. For a complete list of options, see the
“Droppable Options” section later in this
appendix.
Dropset
droppable('destroy') Completely removes droppable functionality
from the selected element(s).
jQuery
droppable('disable') Disables droppable functionality on the
selected element(s).
jQuery
droppable('enable') Enables droppable functionality on the
selected element(s).
jQuery
droppable('option') Returns an object literal containing key, value
pairs representing the value of each currently
set option.
Object
droppable('option',
option)
Returns the currently set value of the provided
option name.
Mixed
droppable('option',
option, value)
Sets the value of the provided option to
value.
jQuery
droppable('widget') Returns a jQuery object containing the drop-
pable element.
jQuery
DRAGGABLE OPTIONS
OPTION DESCRIPTION TYPE
addClasses If set to false, this option prevents the class
ui-draggable from being added to the
draggable element.
Default value: true
Boolean
appendTo For a draggable with a helper option
specifi ed, the matched element passed to the
appendTo option is used as the helper’s
container. If not specifi ed, the helper is
appended to the same container as the
draggable.
Default value: "parent"
jQuery, Element,
Selector, String
axis Contains dragging to either the x or y axis.
Default value: false
String, Boolean
(continued)
http://www.it-ebooks.info
elliott
(Elliott)
#1