Files
2026-06-24 09:48:54 +02:00

13 lines
897 B
TypeScript

/** Dropdown UI component for layer navigation */
import type { LayerInfo, DropdownCallbacks } from "./types.js";
/** Create the dropdown DOM element with layer items */
export declare function createDropdownElement(layers: LayerInfo[], currentElement: Element | null, callbacks: DropdownCallbacks): HTMLDivElement;
/** Add chevron indicator and pointer-events to the label */
export declare function enhanceLabelWithChevron(label: HTMLDivElement): void;
/** Show the dropdown below the label element */
export declare function showDropdown(label: HTMLDivElement, layers: LayerInfo[], currentElement: Element | null, callbacks: DropdownCallbacks): void;
/** Close the active dropdown and clean up listeners */
export declare function closeDropdown(): void;
/** Check if a dropdown is currently visible */
export declare function isDropdownOpen(): boolean;
//# sourceMappingURL=dropdown-ui.d.ts.map