Method UseSortable
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
UseSortable(string)
Returns the sorting state of the item id names in the nearest V.SortableContext
— dnd-kit's useSortable, read-only: the element is V.Sortable, which moves the items aside
itself. The component re-renders when the context's items, the active draggable or the target it is
over changes. Outside a V.SortableContext every index is -1 and the items are empty.
public static SortableState UseSortable(string id)
Parameters
idstringThe item's id. Must not be null.
Returns
- SortableState
The item's sorting state.