Appearance
ToggleSwitch-DEMO
Propoties
属性(attr) | 类型(type) | 必填(required) | 默认值(default) | 说明(statement) |
---|---|---|---|---|
value | Number | No | false | Toggleswitch value |
on | String | No | On | Toggleswitch content when value is true |
off | String | No | Off | Toggleswitch content when value is false |
onForeground | [string(color)] | No | N/A | Toggleswitch content foreground when value is true |
offForeground | [string(color)] | No | N/A | Toggleswitch content foreground when value is false |
borderColor | [string(color)] | No | N/A | |
width | Number | No | 40 | |
height | Number | No | 20 | |
insideContent | Boolean | No | false | |
ringBackground | [string(color)] | No | N/A | |
switchOnBackground | [string(color)] | No | N/A | |
disabled | Boolean | No | N/A | |
theme | String | No | system | 主题样式, 包含light , dark , system , custom 几种样式 |
Events
事件名(Name) | 参数类型(args) | 说明(statement) |
---|---|---|
toggle | value |