Radio¶
A widget with a series of toggle buttons that allows the user to select one of several options.
The
choiceSettings object described in the Parameters page is required for defining an instance of this parameter.
If the parameter
prompt field is not empty, the radio buttons will be put into a group that has the prompt as the title, otherwise the radio buttons will not be in a group.
| Key | Type | Required | Default | Description | UPM/TD |
|---|---|---|---|---|---|
numCols |
int | 1 |
The number of columns to layout the radio buttons in. |
Example¶
{
"name": "someradio",
"type": "radio",
"valueType": "string",
"prompt": "Geometry Type",
"choiceSettings": {
"choices": [
{
"value": "poly",
"display": "polygon"
},
{
"value": "point",
"display": "point"
},
{
"value": "line",
"display": "line"
}
]
},
"numCols": 3
}