mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 05:58:26 +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