@ux-aspects/ux-aspects
Version:
Open source user interface framework for building modern, responsive, mobile big data applications
29 lines (28 loc) • 1.56 kB
TypeScript
import { FocusOrigin } from '@angular/cdk/a11y';
import { ElementRef, EventEmitter, OnDestroy } from '@angular/core';
import { FocusIndicatorService } from '../accessibility/index';
import * as i0 from "@angular/core";
export declare class MenuNavigationToggleDirective implements OnDestroy {
readonly elementRef: ElementRef<any>;
readonly focusIndicatorService: FocusIndicatorService;
/** Define if the menu is open */
get menuOpen(): boolean;
set menuOpen(value: boolean);
/** Define the position the menu appears relative to the button */
menuPosition: 'top' | 'right' | 'bottom' | 'left';
/** Emit when the menu open state changes */
menuOpenChange: EventEmitter<boolean>;
/** Emits whenever a key that opens the menu is pressed */
keyEnter: EventEmitter<void>;
/** Store the current menu open state */
private _menuOpen;
/** Store a reference to the focus indicator */
private readonly _focusIndicator;
constructor();
ngOnDestroy(): void;
focus(origin?: FocusOrigin): void;
keydownHandler(event: KeyboardEvent): void;
private isKeyMatch;
static ɵfac: i0.ɵɵFactoryDeclaration<MenuNavigationToggleDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<MenuNavigationToggleDirective, "[uxMenuNavigationToggle]", ["uxMenuNavigationToggle"], { "menuOpen": { "alias": "menuOpen"; "required": false; }; "menuPosition": { "alias": "menuPosition"; "required": false; }; }, { "menuOpenChange": "menuOpenChange"; "keyEnter": "keyEnter"; }, never, never, false, never>;
}