Optional
itemsOptional
modeWhether to move the dragged item to before/after the drop target, or swap it with the drop target.
Note that the moving/swapping action is being done as the user is dragging as soon as they drag over another item, so in order to achieve a swap effect, the user needs to be able to drag an item from one location to another without the path of the mouse crossing over all in-between items.
The elements that will be used as the draggable items.
The widget should have more than one draggable item.
If this is not specified, then
lisn-sortable-item
. They do not have to be immediate children of the root element.script
andstyle
elements) are taken as the items.