UNPKG

@universal-material/web

Version:
49 lines 1.67 kB
import { HTMLTemplateResult, LitElement } from 'lit'; import '../elevation/elevation.js'; export declare class UmMenu extends LitElement { #private; static styles: import("lit").CSSResult[]; autoclose: boolean | 'outside'; /** * Opens the menu and makes it visible. Alternative to the `.show()`, `.close()` and `.toggle()` methods */ get open(): boolean; set open(open: boolean); positioning: 'relative' | 'fixed'; manualFocus: boolean; /** * The corner of the anchor which to align the menu in the standard logical * property style of <block>-<inline> e.g. `'end-start'`. */ anchorCorner: 'auto-start' | 'auto-end' | 'start-start' | 'start-end' | 'end-start' | 'end-end'; /** * The direction of the menu. e.g. `'down-end'`. * * NOTE: This value may not be respected by the menu positioning algorithm * if the menu would render outside the viewport. */ direction: 'up-start' | 'up-end' | 'down-start' | 'down-end'; /** * Don't limit the height of the menu */ allowOverflow: boolean; menu: HTMLElement; ref: HTMLElement; get scrollContainer(): HTMLElement; get anchorElement(): HTMLElement | null | undefined; set anchorElement(anchorElement: HTMLElement | null | undefined); protected render(): HTMLTemplateResult; connectedCallback(): void; toggle: () => void; show(): void; close: () => void; private calcDropdownPositioning; private getMenuPosition; private getMenuSize; } declare global { interface HTMLElementTagNameMap { 'u-menu': UmMenu; } } //# sourceMappingURL=menu.d.ts.map