@aurelia-mdc-web/floating-label
Version:
Wrapper for Material Components Web Floating Label
18 lines (17 loc) • 741 B
TypeScript
import { MDCFloatingLabelFoundation } from '@material/floating-label';
import { MdcComponent } from '@aurelia-mdc-web/base';
export declare class MdcFloatingLabel extends MdcComponent<MDCFloatingLabelFoundation> {
shake(shouldShake: boolean): void;
/**
* Styles the label to float/dock.
* @param shouldFloat If true, floats the label by adding a CSS class; otherwise, docks it by removing the class.
*/
float(shouldFloat: boolean): void;
/**
* Styles the label as required.
* @param isRequired If true, adds an asterisk to the label, indicating that it is required.
*/
setRequired(isRequired: boolean): void;
getWidth(): number;
getDefaultFoundation(): MDCFloatingLabelFoundation;
}