Switch
Switch selector.
Example
js
bxml
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
#
PropsName | Type | Description | Default |
---|---|---|---|
checked | boolean | If selected | false |
disabled | boolean | Is it disabled? | false |
color | string | Switch The color of css of color | var(--bnui-primay) |
#
EventsName | Description |
---|---|
bindtap | Tap event for the switch |
bindtapcapture | Tap capture event |
bindchange | checked Triggered when changed change Events, event.detail = { value} |