vue-fluid-dnd
Version:
A Vue 3 drag and drop library to sort all kind of lists
5 lines (4 loc) • 353 B
TypeScript
import { ListCondig } from ".";
import { Config } from ".";
import HandlerPublisher from "@/core/HandlerPublisher";
export default function dragAndDrop<T>(listCondig: ListCondig<T>, handlerPublisher: HandlerPublisher, config?: Config<T>): readonly [(index: number) => void, (index: number, value: T) => void, (parent: HTMLElement | undefined) => void];