fluid-dnd
Version:
An agnostic drag and drop library to sort all kind of lists. With current support for vue, react and svelte
15 lines (14 loc) • 586 B
TypeScript
import { ElementScroll } from '../../../index';
import { CoreConfig } from '..';
export type DroppableConfig<T> = {
droppable: HTMLElement;
config: CoreConfig<T>;
scroll: ElementScroll;
};
export default class ConfigHandler {
static configs: DroppableConfig<any>[];
static addConfig<T>(droppable: HTMLElement, config: CoreConfig<T>): void;
static removeObsoleteConfigs: () => void;
static updateScrolls(currentDroppable: Element, droppableGroupClass: string | null): void;
static getConfig(curerntDroppable: Element): DroppableConfig<any> | undefined;
}