Switch widget
The switch widget enables users to select one of two states, such as "On" and "Off."
Properties
Property |
Description |
Data type |
---|---|---|
|
Indicates whether to switch the default state. |
Boolean |
|
Unique identifier of this widget. |
string |
type
|
Rich-media type, which is always Switch . |
string |
Widget-specific expression evaluation
Property |
Description |
Data type |
---|---|---|
|
Example: |
String |
Code sample
var obj = {
"widgetType": "form",
"nodes":
[{
"id": "widget1",
"controls": {
"0": {
"type": "Switch",
"active": true,
"id": "switch1"
}
}
}
]
}