source: trip-planner-front/node_modules/@angular/material/menu/menu-item.d.ts@ eed0bf8

Last change on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 3.2 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { FocusableOption, FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';
9import { BooleanInput } from '@angular/cdk/coercion';
10import { ElementRef, OnDestroy, AfterViewInit, ChangeDetectorRef } from '@angular/core';
11import { CanDisable, CanDisableRipple } from '@angular/material/core';
12import { Subject } from 'rxjs';
13import { MatMenuPanel } from './menu-panel';
14/** @docs-private */
15declare const _MatMenuItemBase: import("@angular/material/core/common-behaviors/constructor").Constructor<CanDisableRipple> & import("@angular/material/core/common-behaviors/constructor").AbstractConstructor<CanDisableRipple> & import("@angular/material/core/common-behaviors/constructor").Constructor<CanDisable> & import("@angular/material/core/common-behaviors/constructor").AbstractConstructor<CanDisable> & {
16 new (): {};
17};
18/**
19 * Single item inside of a `mat-menu`. Provides the menu item styling and accessibility treatment.
20 */
21export declare class MatMenuItem extends _MatMenuItemBase implements FocusableOption, CanDisable, CanDisableRipple, AfterViewInit, OnDestroy {
22 private _elementRef;
23 private _focusMonitor?;
24 _parentMenu?: MatMenuPanel<MatMenuItem> | undefined;
25 /**
26 * @deprecated `_changeDetectorRef` to become a required parameter.
27 * @breaking-change 14.0.0
28 */
29 private _changeDetectorRef?;
30 /** ARIA role for the menu item. */
31 role: 'menuitem' | 'menuitemradio' | 'menuitemcheckbox';
32 /** Stream that emits when the menu item is hovered. */
33 readonly _hovered: Subject<MatMenuItem>;
34 /** Stream that emits when the menu item is focused. */
35 readonly _focused: Subject<MatMenuItem>;
36 /** Whether the menu item is highlighted. */
37 _highlighted: boolean;
38 /** Whether the menu item acts as a trigger for a sub-menu. */
39 _triggersSubmenu: boolean;
40 constructor(_elementRef: ElementRef<HTMLElement>,
41 /**
42 * @deprecated `_document` parameter is no longer being used and will be removed.
43 * @breaking-change 12.0.0
44 */
45 _document?: any, _focusMonitor?: FocusMonitor | undefined, _parentMenu?: MatMenuPanel<MatMenuItem> | undefined,
46 /**
47 * @deprecated `_changeDetectorRef` to become a required parameter.
48 * @breaking-change 14.0.0
49 */
50 _changeDetectorRef?: ChangeDetectorRef | undefined);
51 /** Focuses the menu item. */
52 focus(origin?: FocusOrigin, options?: FocusOptions): void;
53 ngAfterViewInit(): void;
54 ngOnDestroy(): void;
55 /** Used to set the `tabindex`. */
56 _getTabIndex(): string;
57 /** Returns the host DOM element. */
58 _getHostElement(): HTMLElement;
59 /** Prevents the default element actions if it is disabled. */
60 _checkDisabled(event: Event): void;
61 /** Emits to the hover stream. */
62 _handleMouseEnter(): void;
63 /** Gets the label to be used when determining whether the option should be focused. */
64 getLabel(): string;
65 _setHighlighted(isHighlighted: boolean): void;
66 static ngAcceptInputType_disabled: BooleanInput;
67 static ngAcceptInputType_disableRipple: BooleanInput;
68}
69export {};
Note: See TracBrowser for help on using the repository browser.