drag
Ce contenu n’est pas encore disponible dans votre langue.
Type Aliases
DragItemOptions
Options of a draggable item action.
Extends neodrag options.
Type declaration
flipDuration
Duration of flip animation.
items
Array of draggable items.
minSwapDistance?
Min distance between items swaps.
After doing an item swap, the next swap will be ignored if the distance between the last swap and the current position is less than this value.
See
Defined in
tmp/commons/src/lib/actions/drag.ts:12
Functions
draggableItem()
Action to make an item in an array of items draggable.
The array will be mutated to update the order.
Options : DragItemOptions.
Type Parameters
• Node extends HTMLElement
Parameters
• …args: [Node
, DragItemOptions
]
Returns
void
| ActionReturn
<DragItemOptions
, Record
<never
, any
>>