UNPKG

@angular/material

Version:
59 lines (58 loc) 3.4 kB
/** * @license * Copyright Google LLC 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 { FocusMonitor, FocusableOption, FocusOrigin } from '@angular/cdk/a11y'; import { ElementRef, OnDestroy, AfterViewInit, NgZone } from '@angular/core'; import { CanColor, CanDisable, CanDisableRipple, MatRipple } from '@angular/material/core'; import * as i0 from "@angular/core"; declare const _MatButtonBase: import("@angular/material/core")._Constructor<CanColor> & import("@angular/material/core")._AbstractConstructor<CanColor> & import("@angular/material/core")._Constructor<CanDisable> & import("@angular/material/core")._AbstractConstructor<CanDisable> & import("@angular/material/core")._Constructor<CanDisableRipple> & import("@angular/material/core")._AbstractConstructor<CanDisableRipple> & { new (_elementRef: ElementRef): { _elementRef: ElementRef; }; }; /** * Material design button. */ export declare class MatButton extends _MatButtonBase implements AfterViewInit, OnDestroy, CanDisable, CanColor, CanDisableRipple, FocusableOption { private _focusMonitor; _animationMode: string; /** Whether the button is round. */ readonly isRoundButton: boolean; /** Whether the button is icon button. */ readonly isIconButton: boolean; /** Reference to the MatRipple instance of the button. */ ripple: MatRipple; constructor(elementRef: ElementRef, _focusMonitor: FocusMonitor, _animationMode: string); ngAfterViewInit(): void; ngOnDestroy(): void; /** Focuses the button. */ focus(origin?: FocusOrigin, options?: FocusOptions): void; _getHostElement(): any; _isRippleDisabled(): boolean; /** Gets whether the button has one of the given attributes. */ _hasHostAttributes(...attributes: string[]): boolean; static ɵfac: i0.ɵɵFactoryDeclaration<MatButton, [null, null, { optional: true; }]>; static ɵcmp: i0.ɵɵ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, ["*"]>; } /** * Material design anchor button. */ export declare class MatAnchor extends MatButton implements AfterViewInit, OnDestroy { /** @breaking-change 14.0.0 _ngZone will be required. */ private _ngZone?; /** Tabindex of the button. */ tabIndex: number; constructor(focusMonitor: FocusMonitor, elementRef: ElementRef, animationMode: string, /** @breaking-change 14.0.0 _ngZone will be required. */ _ngZone?: NgZone | undefined); ngAfterViewInit(): void; ngOnDestroy(): void; _haltDisabledEvents: (event: Event) => void; static ɵfac: i0.ɵɵFactoryDeclaration<MatAnchor, [null, null, { optional: true; }, { optional: true; }]>; static ɵcmp: i0.ɵɵ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, ["*"]>; } export {};