mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 18:54:11 +08:00
docs(): value for toggle and checkbox (#16102)
* docs(): value for toggle and checkbox fixes #16074 * update docs
This commit is contained in:
@ -50,7 +50,12 @@ export class Checkbox implements ComponentInterface {
|
||||
@Prop() disabled = false;
|
||||
|
||||
/**
|
||||
* The value of the checkbox.
|
||||
* The value of the toggle does not mean if it's checked or not, use the `checked`
|
||||
* property for that.
|
||||
*
|
||||
* The value of a toggle is analogous to the value of a `<input type="checkbox">`,
|
||||
* it's only used when the toggle participates in a native `<form>`.
|
||||
* Defaults to `on`.
|
||||
*/
|
||||
@Prop() value = 'on';
|
||||
|
||||
|
Reference in New Issue
Block a user