@angular-mdc/web
Version:
24 lines (23 loc) • 1.06 kB
TypeScript
import { AfterContentInit, ElementRef, NgZone, OnDestroy } from '@angular/core';
import { MDCComponent } from '@angular-mdc/web/base';
import { MDCFloatingLabelFoundation } from '@material/floating-label';
export declare class MdcFloatingLabel extends MDCComponent<MDCFloatingLabelFoundation> implements AfterContentInit, OnDestroy {
private _ngZone;
elementRef: ElementRef<HTMLElement>;
/** Emits whenever the component is destroyed. */
private _destroy;
for?: string;
getDefaultFoundation(): MDCFloatingLabelFoundation;
constructor(_ngZone: NgZone, elementRef: ElementRef<HTMLElement>);
ngAfterContentInit(): void;
ngOnDestroy(): void;
/** Returns the width of the label element. */
getWidth(): number;
/** Styles the label to produce the label shake for errors. */
shake(shouldShake: boolean): void;
/** Styles the label to float or dock. */
float(shouldFloat: boolean): void;
private _loadListeners;
/** Retrieves the DOM element of the component host. */
private _getHostElement;
}