/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { SubMenuItem } from '@material/web/menu/lib/submenuitem/sub-menu-item.js'; export { ListItem } from '@material/web/list/lib/listitem/list-item.js'; export { CloseMenuEvent, DeactivateItemsEvent, MenuItem } from '@material/web/menu/lib/shared.js'; declare global { interface HTMLElementTagNameMap { 'md-sub-menu-item': MdSubMenuItem; } } /** * @summary Menus display a list of choices on a temporary surface. * * @description * Menu items are the selectable choices within the menu. Menu items must * implement the `MenuItem` interface and also have the `md-menu-item` * attribute. Additionally menu items are list items so they must also have the * `md-list-item` attribute. * * Menu items can control a menu by selectively firing the `close-menu` and * `deselect-items` events. * * This menu item will open a sub-menu that is slotted in the `submenu` slot. * Additionally, the containing menu must either have `has-overflow` or `fixed` * set to `true` in order to display the containing menu properly. * * @example * ```html *
* * * el.anchor = * anchorRef.value}> * * * * * * *
* ``` * * @final * @suppress {visibility} */ export declare class MdSubMenuItem extends SubMenuItem { static styles: import("lit").CSSResult[]; }