Dropdown¶
A widget that allows a user to select a single item from a dropdown menu, or optionally input a string. Value can be saved as a string, number, or bool.
The
choiceSettings object described in the Parameters page is required for defining an instance of this parameter.
To add a separator between items, add a choice item with a value of
-----.
Example¶
{
"name": "somedropdown",
"type": "dropdown",
"valueType": "string",
"prompt": "Geometry Type",
"defaultValue": "poly",
"choiceSettings": {
"choices": [
{
"value": "poly",
"display": "polygon"
},
{
"value": "point",
"display": "point"
},
{
"value": "line",
"display": "line"
}
]
}
}