mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 13:01:01 +08:00
docs(checkbox): updates methods and inputs
This commit is contained in:
@ -28,7 +28,7 @@ import {isTrueProperty} from '../../util/util';
|
|||||||
*
|
*
|
||||||
* <ion-item>
|
* <ion-item>
|
||||||
* <ion-label>Sausage</ion-label>
|
* <ion-label>Sausage</ion-label>
|
||||||
* <ion-checkbox value="sausage"></ion-checkbox>
|
* <ion-checkbox value="sausage" disabled="true"></ion-checkbox>
|
||||||
* </ion-item>
|
* </ion-item>
|
||||||
*
|
*
|
||||||
* <ion-item>
|
* <ion-item>
|
||||||
@ -68,6 +68,9 @@ export class Checkbox {
|
|||||||
*/
|
*/
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
@Input() value: string = '';
|
@Input() value: string = '';
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
@ -96,6 +99,9 @@ export class Checkbox {
|
|||||||
this.checked = !this.checked;
|
this.checked = !this.checked;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
@Input()
|
@Input()
|
||||||
get checked() {
|
get checked() {
|
||||||
return this._checked;
|
return this._checked;
|
||||||
@ -109,6 +115,9 @@ export class Checkbox {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
@Input()
|
@Input()
|
||||||
get disabled() {
|
get disabled() {
|
||||||
return this._disabled;
|
return this._disabled;
|
||||||
|
Reference in New Issue
Block a user