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 | import * as ɵngcc0 from '@angular/core';
|
---|
13 | 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> & {
|
---|
14 | new (_elementRef: ElementRef): {
|
---|
15 | _elementRef: ElementRef;
|
---|
16 | };
|
---|
17 | };
|
---|
18 | /**
|
---|
19 | * Material design button.
|
---|
20 | */
|
---|
21 | export declare class MatButton extends _MatButtonBase implements AfterViewInit, OnDestroy, CanDisable, CanColor, CanDisableRipple, FocusableOption {
|
---|
22 | private _focusMonitor;
|
---|
23 | _animationMode: string;
|
---|
24 | /** Whether the button is round. */
|
---|
25 | readonly isRoundButton: boolean;
|
---|
26 | /** Whether the button is icon button. */
|
---|
27 | readonly isIconButton: boolean;
|
---|
28 | /** Reference to the MatRipple instance of the button. */
|
---|
29 | ripple: MatRipple;
|
---|
30 | constructor(elementRef: ElementRef, _focusMonitor: FocusMonitor, _animationMode: string);
|
---|
31 | ngAfterViewInit(): void;
|
---|
32 | ngOnDestroy(): void;
|
---|
33 | /** Focuses the button. */
|
---|
34 | focus(origin?: FocusOrigin, options?: FocusOptions): void;
|
---|
35 | _getHostElement(): any;
|
---|
36 | _isRippleDisabled(): boolean;
|
---|
37 | /** Gets whether the button has one of the given attributes. */
|
---|
38 | _hasHostAttributes(...attributes: string[]): boolean;
|
---|
39 | static ngAcceptInputType_disabled: BooleanInput;
|
---|
40 | static ngAcceptInputType_disableRipple: BooleanInput;
|
---|
41 | static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<MatButton, [null, null, { optional: true; }]>;
|
---|
42 | static ɵcmp: ɵngcc0.ɵɵComponentDeclaration<MatButton, "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", ["matButton"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "color": "color"; }, {}, never, ["*"]>;
|
---|
43 | }
|
---|
44 | /**
|
---|
45 | * Material design anchor button.
|
---|
46 | */
|
---|
47 | export declare class MatAnchor extends MatButton {
|
---|
48 | /** Tabindex of the button. */
|
---|
49 | tabIndex: number;
|
---|
50 | constructor(focusMonitor: FocusMonitor, elementRef: ElementRef, animationMode: string);
|
---|
51 | _haltDisabledEvents(event: Event): void;
|
---|
52 | static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<MatAnchor, [null, null, { optional: true; }]>;
|
---|
53 | static ɵcmp: ɵngcc0.ɵɵComponentDeclaration<MatAnchor, "a[mat-button], a[mat-raised-button], a[mat-icon-button], a[mat-fab], a[mat-mini-fab], a[mat-stroked-button], a[mat-flat-button]", ["matButton", "matAnchor"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "color": "color"; "tabIndex": "tabIndex"; }, {}, never, ["*"]>;
|
---|
54 | }
|
---|
55 | export {};
|
---|
56 |
|
---|
57 | //# sourceMappingURL=button.d.ts.map |
---|