Creates new sortable on the nodeset supplied by the query.
This jQuery plugin makes DOM nodes sortable by mouse. You can additionally supply a great range of options to make them fit your needs.
All callbacks receive two arguments: The original browser event and a prepared ui object, view below for a documentation of this object (if you name your second argument 'ui'):
- ui.instance - the internal instance of the sortable
- ui.options - options used to initialize the sortable
- ui.position - current position of the helper
- ui.absolutePosition - current absolute position of the helper
- ui.helper - the current helper element (most often a clone of the item)
- ui.placeholder - the placeholder (if you defined one)
Arguments:
| options | Options | |
|---|---|---|
| A set of key/value pairs that configure the sortable. All options are optional. | ||