Web Development with jQuery®

(Elliott) #1

Appendix K (^) ❘ 565
scroll This option causes the page to scroll when a
dragged element comes to an edge.
Default value: true
Boolean
scrollSensitivity This option defi nes how close to an edge a
dragged element must be before scrolling
occurs. Measured in pixels.
Default value: 20
Number
scrollSpeed This option defi nes the speed that the
container is scrolled.
Default value: 20
Number
tolerance This option defi nes what mode to use to
determine whether a dragged element is
above another item. The possible values are
'intersect' and 'pointer'.
Default value: 'intersect'
String
zIndex The z-index for the drag element.
Default value: 1000
Integer
EVENTS
activate
bind('sortactivate')
on('sortactivate')
A function that executes when a drag on a
sortable item begins. This function
propagates to all connected lists.
function
(event, ui)
beforeStop
bind('sortbeforestop')
on('sortbeforestop')
A function that executes when sorting ends,
but while the placeholder or helper is still
available.
function
(event, ui)
change
bind('sortchange')
on('sortchange')
A function that executes when a change in
sorting takes place.
function
(event, ui)
create
bind('sortcreate')
on('sortcreate')
A function that executes when a sortable is
created.
function
(event, ui)
deactivate
bind('sortdeactivate')
on('sortdeactivate')
A function that executes when sorting ends.
This function propagates to all connected
lists.
function
(event, ui)
continues
http://www.it-ebooks.info

Free download pdf