# switch
Start from base library version 1.0.0. Please remaining backward compatible.
Switch selector.
attribute | type | Default value | Required | Introductions | Minimum version |
---|---|---|---|---|---|
checked | boolean | false | no | If selected | 1.0.0 |
disabled | boolean | false | no | Is it disabled? | 1.0.0 |
type | string | switch | no | Style, valid value: switch, checkbox | 1.0.0 |
color | string | #04BE02 | no | switch The color of css of color | 1.0.0 |
bindchange | eventhandle | no | checked Triggered when changed change Events, event.detail ={ value} | 1.0.0 |
# Bug & Tip
tip
: When switching type comes with vibration feedback in iOS, can be set in the system -> Sound and touch -> System Tactile Feedback Shut Down