mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 05:21:52 +08:00
docs(label): make inputs private
This commit is contained in:
@ -50,6 +50,9 @@ import {Directive, ElementRef, Renderer, Input, Optional, Attribute} from 'angul
|
|||||||
export class Label {
|
export class Label {
|
||||||
private _id: string;
|
private _id: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
type: string;
|
type: string;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
@ -63,6 +66,9 @@ export class Label {
|
|||||||
this.type = (isFloating === '' ? 'floating' : (isStacked === '' ? 'stacked' : (isFixed === '' ? 'fixed' : (isInset === '' ? 'inset' : null))));
|
this.type = (isFloating === '' ? 'floating' : (isStacked === '' ? 'stacked' : (isFixed === '' ? 'fixed' : (isInset === '' ? 'inset' : null))));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
@Input()
|
@Input()
|
||||||
get id(): string {
|
get id(): string {
|
||||||
return this._id;
|
return this._id;
|
||||||
@ -75,6 +81,9 @@ export class Label {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
get text(): string {
|
get text(): string {
|
||||||
return this._elementRef.nativeElement.textContent || '';
|
return this._elementRef.nativeElement.textContent || '';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user