Class DndSortable
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
Helpers of dnd-kit's @dnd-kit/sortable.
public static class DndSortable
- Inheritance
-
objectDndSortable
Fields
- KeyboardCoordinates
dnd-kit's
sortableKeyboardCoordinates, for DndKeyboardSensor: an arrow key moves the drag onto the nearest droppable in its direction, by the corners of the rects, passing over the one the drag is already over. Items of one context after the dragged one are met at their far edge.
Methods
- ArrayMove<T>(IReadOnlyList<T>, int, int)
Returns a copy of
itemswith the item atfrommoved toto, dnd-kit'sarrayMove. A negativetocounts from the end.
- ArraySwap<T>(IReadOnlyList<T>, int, int)
Returns a copy of
itemswith the items atfromandtoswapped, dnd-kit'sarraySwap.