Описание тега jquery-ui-sortable

The jQuery UI Sortable plugin makes selected elements sortable by dragging with the mouse.

The jquery-ui Sortable plugin makes selected elements sortable by dragging with the mouse.

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.helper: the current helper element (most often a clone of the item)
  • ui.position: current position of the helper
  • ui.offset: current absolute position of the helper
  • ui.item: the current dragged element
  • ui.placeholder: the placeholder (if you defined one)
  • ui.sender: the sortable where the item comes from (only exists if you move from one connected list to another)
  • ui.handle: specific sortable handle that allows dragging (otherwise the entire ui.item is the handle)

Useful links


Related Tags