Optional
animationOptional
bubbleapply autoscroll to all parent elements, allowing for easier movement.
Optional
chosenClass name for the chosen item
Optional
dataOptional
delaytime in milliseconds to define when the sorting should start
Optional
delayOnly delay if user is using touch
Optional
directionDirection of Sortable (will be detected automatically if not given)
Optional
disabledDisables the sortable if set to true.
Optional
dragClass name for the dragging item
Optional
draggableSpecifies which items inside the element should be draggable
Optional
dragoverOptional
dropOptional
easingEasing for animation. Defaults to null.
See https://easings.net/ for examples.
For other possible values, see https://www.w3schools.com/cssref/css3_pr_animation-timing-function.asp
Optional
emptydistance mouse must be from empty sortable to insert drag element into it
Optional
fallbackClass name for the cloned DOM Element when using forceFallback
Optional
fallbackOptional
fallbackAppends the cloned DOM Element into the Document's Body
Optional
fallbackSpecify in pixels how far the mouse should move before it's considered as a drag.
Optional
filterSelectors that do not lead to dragging (String or Function)
Optional
forceignore the HTML5 DnD behaviour and force the fallback to kick in
Optional
ghostClass name for the drop placeholder
Optional
groupTo drag elements from one list into another, both lists must have the same group value. You can also define whether lists can give away, give and keep a copy (clone), and receive elements.
Optional
handleDrag handle selector within list items
Optional
ignoreOptional
invertWill always use inverted swap zone if set to true
Optional
invertedThreshold of the inverted swap zone
(will be set to swapThreshold
value by default)
Optional
multiEnable the plugin
Optional
multiKey that must be down for items to be selected
Optional
onElement is dropped into the list from another list
Optional
onCalled when dragging element changes position
Optional
onElement is chosen
Optional
onCreated a clone of an element
Optional
onCalled when an item is deselected
Optional
onElement dragging ended
Optional
onAttempt to drag a filtered element
Optional
onEvent when you move an item in the list or between lists
Optional
onElement is removed from the list into another list
Optional
onCalled when an item is selected
Optional
onCalled by any change to the list (add / update / remove)
Optional
onCalled when either revertOnSpill
or RemoveOnSpill
plugins are enabled.
Optional
onElement dragging started
Optional
onElement is unchosen
Optional
onChanged sorting within list
Optional
preventCall event.preventDefault()
when triggered filter
Optional
removeRemove the clone element when it is not showing, rather than just hiding it
Optional
removeThis plugin, when enabled, will cause the dragged item to be removed from the DOM if it is spilled (ie. it is dropped outside of a valid Sortable drop target)
Optional
revertThis plugin, when enabled, will cause the dragged item to be reverted to it's original position if it is spilled (ie. it is dropped outside of a valid Sortable drop target)
Optional
scrollEnable the plugin. Can be HTMLElement
.
Optional
scrollif you have custom scrollbar scrollFn may be used for autoscrolling.
Optional
scrollpx
, how near the mouse must be to an edge to start scrolling.
Optional
scrollpx
, speed of the scrolling.`
Optional
selectedClass name for selected item
Optional
setOptional
sortsorting inside list
Optional
storeOptional
swapEnable swap mode
Optional
swapClass name for swap item (if swap mode is enabled)
Optional
swapThreshold of the swap zone.
Defaults to 1
Optional
touchHow many pixels the point should move before cancelling a delayed drag event
ms, animation speed moving items when sorting,
0
— without animation