Skip to main content
☰
CCMS 组件库
CCMS 组件库
Components
Components
Components
Checkbox
Bind HTML
Date Picker
Dropdown
Dynamic-Attr
Form
Grid
Iconfont
Layout
Loading
Menus
Modal
Pagination
Radio Button
Sample Component
Tips
Tooltip
Tabset
Switch
Switch Button
Maintainer: jianzhe.ding
Contents
Contents
Support Attribute
Note
Examples
Support Attribute
ng-model
Any
Ref Angular Doc
ng-disabled
boolean
(default: false)
Ref Angular Doc
ng-true-value
Any
(default: true)
Ref Angular Doc
ng-false-value
Any
(default: false)
Ref Angular Doc
open-text
string
text of switch opened
close-text
string
text of switch closed
Note
ng-model
is required.
If you want change component size, rewrite font-size of the ‘switch-button-block’ class. Using ‘em’ unit is recommended.
If you want change component width, rewrite width of the ‘switch-button-block’ class. Using ‘em’ unit is recommended.
Examples