UNPKG

@universal-material/web

Version:
20 lines 925 B
import { UmMenuItem } from '../../menu/menu-item.js'; import { UmMenuField } from './menu-field.js'; export declare class MenuFieldNavigationController<TField extends UmMenuField, TMenuItem extends UmMenuItem> { #private; protected focusedMenu: TMenuItem | null; protected readonly getHost: () => TField; private readonly _bindHandleKeyDown; constructor(host: TField); attach(element: HTMLElement): void; detach(): void; protected handleKeyDown(event: KeyboardEvent): boolean; private navigate; protected navigateTo(event: KeyboardEvent, menu: TMenuItem | undefined, index: number): void; focusMenu(menu: TMenuItem, index: number, active?: boolean, scroll?: boolean): void; blurMenu(): void; private selectActiveItem; protected afterFocus(_: TMenuItem, __: number): void; protected afterBlur(): void; } //# sourceMappingURL=menu-field-navigation-controller.d.ts.map