This is an overview of the most common usage of Switch. For more information about the available properties, methods, or events, head over to the complete API documentation for Switch.
<Switch>
is a UI component that lets users toggle between two states.
The default state is false
or OFF.
<Switch checked="true" />
<Switch>
provides two-way data binding using v-model
.
<Switch v-model="itemEnabled" />
Name | Type | Description |
---|---|---|
checked | Boolean | Gets or sets the value of the switch selection. Default value: false . |
Name | Description |
---|---|
checkedChange | Emitted when the switch selection changes. |
Android | iOS |
---|---|
android.widget.Switch | UISwitch |