ionic-framework
Version:
The ionic-framework package comes with both Javascript and Sass frontend dependencies, located in the root of the package, and a Node API, located in `tooling/`.
37 lines (36 loc) • 857 B
TypeScript
import { ElementRef, Renderer } from 'angular2/core';
import { Form } from '../../util/form';
/**
* @name Label
* @description
* Labels describe the data that the user should enter in to an input element.
* @usage
* ```html
* <ion-input>
* <ion-label>Username</ion-label>
* <input type="text" value="">
* </ion-input>
* ```
*
* @demo /docs/v2/demos/label/
* @see {@link ../../../../components#inputs Input Component Docs}
* @see {@link ../Input Input API Docs}
*
*/
export declare class Label {
private _form;
private _elementRef;
private _renderer;
id: string;
constructor(_form: Form, _elementRef: ElementRef, _renderer: Renderer);
/**
* @private
*/
ngOnInit(): void;
text: string;
/**
* @private
* @param {string} add class name
*/
addClass(className: string): void;
}