@auroratide/reorder-list
Version:
Web component for a rearrangeable list of items
11 lines • 586 B
TypeScript
import type { ReorderItemElement } from "./reorder-item.js";
export declare const CHANGED = "change";
export declare const COMMIT = "commit";
export type ReorderListChangeEventDetail = {
item: ReorderItemElement;
oldIndex: number;
newIndex: number;
};
export declare const changeEvent: (item: ReorderItemElement, oldIndex: number, newIndex: number) => CustomEvent<ReorderListChangeEventDetail>;
export declare const commitEvent: (item: ReorderItemElement, oldIndex: number, newIndex: number) => CustomEvent<ReorderListChangeEventDetail>;
//# sourceMappingURL=events.d.ts.map