mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +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 {
|
||||
private _id: string;
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
type: string;
|
||||
|
||||
constructor(
|
||||
@@ -63,6 +66,9 @@ export class Label {
|
||||
this.type = (isFloating === '' ? 'floating' : (isStacked === '' ? 'stacked' : (isFixed === '' ? 'fixed' : (isInset === '' ? 'inset' : null))));
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
@Input()
|
||||
get id(): string {
|
||||
return this._id;
|
||||
@@ -75,6 +81,9 @@ export class Label {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
get text(): string {
|
||||
return this._elementRef.nativeElement.textContent || '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user