useDragSort

Импорт

import { useDragSort } from '@feugene/granularity/composables/useDragSort'

Экспорты

DragSortOrientationtype
type DragSortOrientation = 'vertical' | 'horizontal'

Модель перестановки: перенос элемента указателем и с клавиатуры.

DragSortModetype
type DragSortMode = 'pointer' | 'keyboard'

Чем ведётся перенос: указателем или с клавиатуры.

DragSortHitinterface
interface DragSortHit<TKey>
UseDragSortOptionsinterface
interface UseDragSortOptions<TKey, TTarget>
UseDragSortReturninterface
interface UseDragSortReturn<TKey, TTarget>
useDragSortfunction
function useDragSort<TKey, TTarget>(options: UseDragSortOptions<TKey, TTarget>): UseDragSortReturn<TKey, TTarget>

Проза библиотеки

Читать в репозитории: docs/drag-sort.md

Источник: @feugene/granularity 0.41.0, package.json#exports и dist/types