useDragSort
Import
import { useDragSort } from '@feugene/granularity/composables/useDragSort'Exports
DragSortOrientationtypetype DragSortOrientation = 'vertical' | 'horizontal'DragSortModetypetype DragSortMode = 'pointer' | 'keyboard'DragSortHitinterfaceinterface DragSortHit<TKey>UseDragSortOptionsinterfaceinterface UseDragSortOptions<TKey, TTarget>UseDragSortReturninterfaceinterface UseDragSortReturn<TKey, TTarget>useDragSortfunctionfunction useDragSort<TKey, TTarget>(options: UseDragSortOptions<TKey, TTarget>): UseDragSortReturn<TKey, TTarget>
Descriptions come from the library in Russian and are not shown here — translating them is a decision of its own, see ADR-0003.
Library prose
Source: @feugene/granularity 0.41.0, package.json#exports and dist/types