Web Development with jQuery®

(Elliott) #1

(^558) ❘ APPENDIX J DRAGGABLE AND DROPPABLE
scope Used to group draggable and droppable
elements into sets, with the accept option.
Draggables and droppables can interact only
with other draggables and droppables of the
same scope.
Default value: "default"
String
tolerance Specifi es which method to use for determining
whether a draggable element is over a
droppable element. Possible values are fit,
intersect, pointer, or touch.
Default value: "intersect"
String
DROPPABLE EVENTS
activate A function that is executed any time an
acceptable draggable element begins a drag.
function(event, ui)
create A function that is executed when a droppable is
created.
function(event, ui)
deactivate A function that is executed any time an
acceptable draggable element’s drag ends.
function(event, ui)
Drop A function that is executed when an accepted
draggable element is dropped on a droppable
element. (“On” is defi ned by the tolerance
option.) Within the function, this refers to the
droppable element, and ui.draggable refers
to the draggable element.
function(event, ui)
Out A function that is executed when an acceptable
draggable element leaves a droppable element.
(“:eave” is defi ned by the tolerance option.)
function(event, ui)
Over A function that is executed when an acceptable
draggable element is dragged over a droppable
element. (“Over” is defi ned by the tolerance
option.)
function(event, ui)
(continued)
http://www.it-ebooks.info

Free download pdf