UNPKG

@angular/material

Version:
32 lines (31 loc) 1.24 kB
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { ElementRef } from '@angular/core'; import { Focusable } from '../core/a11y/focus-key-manager'; import { CanDisable } from '../core/common-behaviors/disabled'; export declare class MdMenuItemBase { } export declare const _MdMenuItemMixinBase: (new (...args: any[]) => CanDisable) & typeof MdMenuItemBase; /** * This directive is intended to be used inside an md-menu tag. * It exists mostly to set the role attribute. */ export declare class MdMenuItem extends _MdMenuItemMixinBase implements Focusable, CanDisable { private _elementRef; constructor(_elementRef: ElementRef); /** Focuses the menu item. */ focus(): void; /** Used to set the `tabindex`. */ _getTabIndex(): string; /** Used to set the HTML `disabled` attribute. Necessary for links to be disabled properly. */ _getDisabledAttr(): boolean; /** Returns the host DOM element. */ _getHostElement(): HTMLElement; /** Prevents the default element actions if it is disabled. */ _checkDisabled(event: Event): void; }