Skip to content

ToggleSwitch-DEMO


Propoties


属性(attr)类型(type)必填(required)默认值(default)说明(statement)
valueNumberNofalseToggleswitch value
onStringNoOnToggleswitch content when value is true
offStringNoOffToggleswitch content when value is false
onForeground[string(color)]NoN/AToggleswitch content foreground when value is true
offForeground[string(color)]NoN/AToggleswitch content foreground when value is false
borderColor[string(color)]NoN/A
widthNumberNo40
heightNumberNo20
insideContentBooleanNofalse
ringBackground[string(color)]NoN/A
switchOnBackground[string(color)]NoN/A
disabledBooleanNoN/A
themeStringNosystem主题样式, 包含light, dark, system, custom几种样式

Events


事件名(Name)参数类型(args)说明(statement)
togglevalue

MIT Licensed