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 | */
|
---|
8 | import { FocusMonitor, FocusableOption, FocusOrigin } from '@angular/cdk/a11y';
|
---|
9 | import { BooleanInput } from '@angular/cdk/coercion';
|
---|
10 | import { ElementRef, OnDestroy, AfterViewInit } from '@angular/core';
|
---|
11 | import { CanColor, CanDisable, CanDisableRipple, MatRipple } from '@angular/material/core';
|
---|
12 | declare const _MatButtonBase: import("@angular/material/core/common-behaviors/constructor").Constructor<CanColor> & import("@angular/material/core/common-behaviors/constructor").AbstractConstructor<CanColor> & import("@angular/material/core/common-behaviors/constructor").Constructor<CanDisable> & import("@angular/material/core/common-behaviors/constructor").AbstractConstructor<CanDisable> & import("@angular/material/core/common-behaviors/constructor").Constructor<CanDisableRipple> & import("@angular/material/core/common-behaviors/constructor").AbstractConstructor<CanDisableRipple> & {
|
---|
13 | new (_elementRef: ElementRef): {
|
---|
14 | _elementRef: ElementRef;
|
---|
15 | };
|
---|
16 | };
|
---|
17 | /**
|
---|
18 | * Material design button.
|
---|
19 | */
|
---|
20 | export declare class MatButton extends _MatButtonBase implements AfterViewInit, OnDestroy, CanDisable, CanColor, CanDisableRipple, FocusableOption {
|
---|
21 | private _focusMonitor;
|
---|
22 | _animationMode: string;
|
---|
23 | /** Whether the button is round. */
|
---|
24 | readonly isRoundButton: boolean;
|
---|
25 | /** Whether the button is icon button. */
|
---|
26 | readonly isIconButton: boolean;
|
---|
27 | /** Reference to the MatRipple instance of the button. */
|
---|
28 | ripple: MatRipple;
|
---|
29 | constructor(elementRef: ElementRef, _focusMonitor: FocusMonitor, _animationMode: string);
|
---|
30 | ngAfterViewInit(): void;
|
---|
31 | ngOnDestroy(): void;
|
---|
32 | /** Focuses the button. */
|
---|
33 | focus(origin?: FocusOrigin, options?: FocusOptions): void;
|
---|
34 | _getHostElement(): any;
|
---|
35 | _isRippleDisabled(): boolean;
|
---|
36 | /** Gets whether the button has one of the given attributes. */
|
---|
37 | _hasHostAttributes(...attributes: string[]): boolean;
|
---|
38 | static ngAcceptInputType_disabled: BooleanInput;
|
---|
39 | static ngAcceptInputType_disableRipple: BooleanInput;
|
---|
40 | }
|
---|
41 | /**
|
---|
42 | * Material design anchor button.
|
---|
43 | */
|
---|
44 | export declare class MatAnchor extends MatButton {
|
---|
45 | /** Tabindex of the button. */
|
---|
46 | tabIndex: number;
|
---|
47 | constructor(focusMonitor: FocusMonitor, elementRef: ElementRef, animationMode: string);
|
---|
48 | _haltDisabledEvents(event: Event): void;
|
---|
49 | }
|
---|
50 | export {};
|
---|