UNPKG

fluid-dnd

Version:

An agnostic drag and drop library to sort all kind of lists. With current support for vue 3 and svelte

5 lines (4 loc) 373 B
import { ListCondig } from "."; import { Config } from "."; import HandlerPublisher from "@/core/HandlerPublisher"; export default function dragAndDrop<T>(listCondig: ListCondig<T>, handlerPublisher: HandlerPublisher, config?: Config<T>, indexAttr?: string): readonly [(index: number) => void, (index: number, value: T) => void, (parent: HTMLElement | undefined) => void];