@esri/calcite-components
Version:
Web Components for Esri's Calcite Design System.
28 lines (26 loc) • 955 B
TypeScript
/// <reference path="../../index.d.ts" />
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
export abstract class Menu extends LitElement {
/**
* Specifies an accessible label for the component.
*
* @required
*/
accessor label: string;
/**
* Specifies the layout of the component.
*
* @default "horizontal"
*/
accessor layout: Layout;
/** Overrides individual strings used by the component. */
accessor messageOverrides: { more?: string; };
/**
* Sets focus on the component's first focusable element.
*
* @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
* @mdn [focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
*/
setFocus(options?: FocusOptions): Promise<void>;
}
export type Layout = "horizontal" | "vertical";