You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`onlabel` |string/html |"On" |Text of the on switch-button
35
-
`offlabel` |string/html |"Off" |Text of the off switch-button
36
-
`size` |string | |Size of the switch-button. Possible values are: `xs`, `sm`, `lg` (no size specified means normal size).
37
-
`onstyle` |string |"primary" |Style of the on switch-button. Possible values are: `primary`,`secondary`,`success`,`danger`,`warning`,`info`,`light`,`dark`
38
-
`offstyle` |string |"light" |Style of the off switch-button. Possible values are: `primary`,`secondary`,`success`,`danger`,`warning`,`info`,`light`,`dark`
39
-
`style` |string | |Appends the value to the class attribute of the switch-button. This can be used to apply custom styles. Refer to Custom Styles for reference.
40
-
`width` |integer | |Sets the width of the switch-button. if set to *null*, width will be auto-calculated.
41
-
`height` |integer | |Sets the height of the switch-button. if set to *null*, height will be auto-calculated.
42
31
43
-
## Example
32
+
## Usage
33
+
Keep `state` in sync using the `onChange` function property
`onlabel` |string/html |"On" |Text of the on switch-button
56
+
`offlabel` |string/html |"Off" |Text of the off switch-button
57
+
`size` |string | |Size of the switch-button. Possible values are: `xs`, `sm`, `lg` (no size specified means default bootstrap size).
58
+
`onstyle` |string |"primary" |Style of the on switch-button. Possible values are: `primary`,`secondary`,`success`,`danger`,`warning`,`info`,`light`,`dark`
59
+
`offstyle` |string |"light" |Style of the off switch-button. Possible values are: `primary`,`secondary`,`success`,`danger`,`warning`,`info`,`light`,`dark`
60
+
`style` |string | |Appends the value to the class attribute of the switch-button. This can be used to apply custom styles. Refer to Custom Styles for reference.
61
+
`width` |integer | |Sets the width of the switch-button. if set to *null*, width will be auto-calculated.
62
+
`height` |integer | |Sets the height of the switch-button. if set to *null*, height will be auto-calculated.
0 commit comments