OptionalghostOptionalchosenCSS class applied to the chosen element when drag starts
OptionaldragCSS class applied to the dragging element
OptionalanimationAnimation duration in milliseconds. Set to 0 to disable animations.
OptionaleasingCSS easing function for animations
OptionalgroupGroup name or configuration for sharing items between lists
OptionalsortWhether sorting is enabled within the list
OptionaldisabledWhether the sortable is disabled
OptionalmultiEnable multi-drag functionality
OptionalselectedCSS class for selected items in multi-drag mode
OptionaldeselectClear selection when clicking outside the sortable container
OptionalonCallback fired when drag operation ends
The sortable event containing drag details
OptionalonCallback fired when drag operation starts
The sortable event
OptionalonCallback fired when an item is added from another list
The sortable event
OptionalonCallback fired when sorting changes within the same list
The sortable event
OptionalonCallback fired when an item is removed to another list
The sortable event
OptionalenableEnable accessibility features (keyboard navigation, ARIA attributes)
OptionalfocusCSS class for focused items during keyboard navigation
OptionalonCallback fired when items are selected/deselected
The sortable event
OptionalhandleCSS selector for drag handle When specified, drag can only be initiated from matching elements
OptionalfilterCSS selector for elements that should not trigger drag
OptionalonCallback fired when a filtered element is clicked
The original mouse/touch event
OptionalignoreCSS selector for descendants of draggable items that should NOT initiate a drag.
Used to allow click-through on interactive elements like links and images so
users can follow an <a> or drag an <img> natively without a sortable drag
starting underneath them. Matches the legacy Sortable.js v1 behaviour and
default value.
Pass an empty string ('') to disable the default and allow drags to start
from any descendant.
OptionaldraggableCSS selector for draggable items
OptionaldelayDelay in milliseconds before drag starts
OptionaldelayDelay on touch devices (fallback to delay if not specified)
OptionaltouchPixels of movement allowed before cancelling delayed drag event
OptionalswapThreshold of the swap zone (0-1)
OptionalinvertInverts the swap threshold behavior
OptionalinvertedThreshold when swap is inverted (0-1)
OptionaldirectionDirection of sortable ('vertical' or 'horizontal')
OptionalforceEnable fallback for browsers without native drag support
OptionalfallbackCSS class for fallback ghost element
OptionalfallbackUse fallback on touch devices
OptionalfallbackFallback tolerance in pixels
OptionalfallbackX-axis offset for fallback ghost
OptionalfallbackY-axis offset for fallback ghost
OptionaldragoverAllow dragover event to bubble. When false (default), the library
calls e.stopPropagation() after handling so that ancestor sortables
don't double-process the event. Set true to support nested sortables.
OptionaldropAllow drop event to bubble. When false (default), the library calls
e.stopPropagation() after handling. Set true to let ancestor
sortables observe drop completions (e.g. for nested-sortable layouts).
OptionalremoveRemove clone element when it's not showing.
Currently a no-op: Resortable does not yet implement clone hide/show cycles — clones are always created on drag start and removed on drag end. Tracked in the v1.x parity work under #44.
OptionalemptyDistance mouse must move from empty sortable to insert drag element into it
OptionalpreventCall preventDefault when filter is triggered
OptionaldataHTML attribute used to track element IDs
OptionalonCallback fired when an element is chosen
The sortable event
OptionalonCallback fired when an element is unchosen
The sortable event
OptionalonCallback fired when sorting changes
The sortable event
OptionalonCallback fired during move operations
The move event with related element
The original drag event
false to cancel the move (no placeholder shift; no sort / update /
change emission for that tick)-1 to force inserting BEFORE the related item1 to force inserting AFTER the related itemtrue / void to proceed with the natural heuristicOptionalonCallback fired when an element is cloned
The sortable event with clone
OptionalonCallback fired when the sort order has changed
The sortable event
OptionalonCallback fired when an item is dropped outside all sortable containers
The sortable event
OptionalrevertRevert item to its original position when dropped outside sortable areas Requires the OnSpill plugin to be installed.
OptionalremoveRemove item from the DOM when dropped outside sortable areas Requires the OnSpill plugin to be installed.
OptionalsetCustom function to set data on the DataTransfer object during drag start
The DataTransfer object from the drag event
The element being dragged
OptionalstoreKey to use when saving/restoring sort order via localStorage
Used by the save() method.
Optionalset?: (sortable: SortableInstanceForStore) => voidCalled when sort order changes — persist the array
Optionalget?: (sortable: SortableInstanceForStore) => string[]Called on initialization — return the stored order
CSS class applied to the ghost element during drag