Web Development with jQuery®

(Elliott) #1

Appendix J (^) ❘ 553
cancel Prevents dragging, if you start dragging within
elements matching the selector.
Default value: "input, textarea, button,
select, option"
Default value: false
Selector
connectToSortable Allows the draggable element to be dropped
on the sortable elements specifi ed in the
provided selector.
Default value: false
Selector,
Boolean
containment Contains dragging within the bounds of the
specifi ed element or selection.
If a string is provided, the possible values are
"window", "document", or "parent".
If an array is provided, the values represent the
four coordinates of the containing box in the
form of [x1, y1, x2, y2].
Default value: false
Element,
Selector,
String,
Array,
Boolean
cursor The CSS cursor to be used during the
operation. Any value suitable for use with the
CSS cursor property may be provided.
Default value: "auto"
String
cursorAt Moves the dragging element/helper, so the
cursor always appears to drag from the same
position. Coordinates can be given as an
object literal using the keys: top, left, right,
bottom.
Default value: false
Object,
Boolean
delay Time in milliseconds (ms) to delay the start of
a drag. This helps prevent unwanted dragging
from occurring when clicking an element.
Default value: 0
Integer
disabled Disables the draggable if set to true.
Default value: false
Boolean
distance Tolerance in pixels for when dragging should
start. Prevents dragging from taking place until
the mouse cursor has reached the pixel
distance from the point the drag began.
Default value: 1
Integer
continues
http://www.it-ebooks.info

Free download pdf