@auroratide/reorder-list
Version:
Web component for a rearrangeable list of items
20 lines • 872 B
TypeScript
import { ReorderItemElement } from "./reorder-item.js";
export type Orientation = "vertical" | "horizontal";
export declare class ReorderListElement extends HTMLElement {
#private;
static defaultElementName: string;
static COMMIT_DEBOUNCE_MS: number;
static html: string;
static css: string;
constructor();
static get observedAttributes(): string[];
get orientation(): Orientation;
set orientation(value: Orientation);
attributeChangedCallback(attribute: string, oldValue: string, newValue: string): void;
items: () => ReorderItemElement[];
current: () => ReorderItemElement;
connectedCallback(): void;
reorder: (curIndex: number, newIndex: number, list?: ReorderItemElement[]) => void;
changeFocus: (newItem: ReorderItemElement, list?: ReorderItemElement[]) => void;
}
//# sourceMappingURL=reorder-list.d.ts.map