(^556) ❘ APPENDIX J DRAGGABLE AND DROPPABLE
snapMode If set, the dragged element snaps only to the
outer edges or to the inner edges of the element.
Possible values are inner, outer, and both.
Default value: "both"
String
snapTolerance The distance in pixels from the snapping
elements before the snapping should occur.
Default value: 20
Integer
stack Used for window managers or window manger-
like applications. This feature controls the z-index
of draggable elements that match the provided
selector. This feature ensures that the draggable
element the user clicks on is always on top.
Default value: false
Selector,
Boolean
zIndex The z-index value for the helper element,
while it is being dragged.
Default value: false
Integer
DRAGGABLE EVENTS
create function(event, ui)
drag A function that is executed while the element
is being dragged.
function(event, ui)
start A function that is executed when the element
begins a drag.
function(event, ui)
stop A function that is executed when the element’s
drag ends.
function(event, ui)
DRAGGABLE UI OBJECT OPTIONS
The callback functions specifi ed for various draggable options specify a ui object in the second
argument. Following are the properties exposed in the ui object.
OPTION DESCRIPTION TYPE
ui.options Options used to initialize the draggable
element.
Object
ui.helper The jQuery object representing the helper
being dragged.
Object
(continued)
http://www.it-ebooks.info
elliott
(Elliott)
#1