Web Development with jQuery®

(Elliott) #1

bapp11.indd 02/17/2015 Page 561


Sortable


SORTABLE METHODS

METHOD DESCRIPTION RETURN
VALUE

sortable(options) Makes the selected element(s) sortable.
Options can be specifi ed by passing an
object literal as the fi rst argument using key,
value pairs. For a complete list of options,
see the “Sortable Options” section later in
this appendix.

jQuery

sortable('cancel') Cancels a change in the state of a sortable
and reverts it back to what it was prior to
sorting.

jQuery

sortable('destroy') Completely removes sortable functionality
from the selected element(s).

jQuery

sortable('disable') Disables sortable functionality on the
selected element(s).

jQuery

sortable('enable') Enables sortable functionality on the selected
element(s).

jQuery

sortable('option',
optionName)

Returns the value of the specifi ed option. Mixed

sortable('option') Returns an object containing all values of all
options.

Object

sortable('option',
optionName,
optionValue)

Sets the specifi ed option to the specifi ed
value.

jQuery

K


continues

http://www.it-ebooks.info

Free download pdf