uiik
Version:
A UI interactions kit includes draggable, splittable, rotatable, selectable, etc.
10 lines (9 loc) • 620 B
TypeScript
import { SortableOptions, Uii } from "./types";
export declare class Sortable extends Uii {
#private;
constructor(container: string | HTMLElement | Array<HTMLElement>, opts?: SortableOptions);
active(draggingItem: HTMLElement, fromContainer: HTMLElement, toContainers: HTMLElement[], toOpts: SortableOptions): void;
deactive(draggingItem: HTMLElement, fromContainer: HTMLElement, toContainers: HTMLElement[], opts: SortableOptions): void;
onOptionChanged(): void;
}
export declare function newSortable(container: string | HTMLElement | Array<HTMLElement>, opts?: SortableOptions): Sortable;