Appendix J (^) ❘ 555
revert If set to true, the element returns to its start
position when dragging stops.
Also accepts the strings valid and invalid. If
set to invalid, revert occurs only if the
draggable has not been dropped on a droppa-
ble. If set to valid, it’s the other way around.
If a function is provided, the function deter-
mines whether the element should be returned
to its starting position. If you use a function, the
function should return a boolean value.
Default value: false
Boolean,
String,
Function
revertDuration The duration of the revert animation provided
in milliseconds. This option is ignored if the
revert option is false.
Default value: 500
Integer
scope This option is used to group sets of draggable
and droppable items. Used with the accept
option on a droppable element, the scope
option.
Default value: "default"
String
scroll If set to true, the draggable’s container auto-
scrolls while dragging.
Default value: true
Boolean
scrollSensitivity Distance in pixels from the edge of the
viewport after which the viewport should scroll.
Distance is relative to the pointer, not the
draggable.
Default value: 20
Integer
scrollSpeed The speed at which the window should scroll
when the mouse pointer gets within the
scrollSensitivity distance.
Default value: 20
Integer
snap If set to a selector or to true (same as selector
.ui-draggable), the new draggable snaps to
the edges of the selected elements when
coming to an edge of the element.
Default value: false
Boolean,
Selector
continues
http://www.it-ebooks.info
elliott
(Elliott)
#1