Skip to content

[Back to Parameters]

Radio

A widget with a series of toggle buttons that allows the user to select one of a several options

Specification

choices and choices/sets, and the latter's corresponding ~Settings object(s) (available to all parameter types, and described in the Parameters) page, are key to defining an instance of this parameter.

  • numCols (optional) the number of columns to spread the radio buttons over. Default is 1

Example

{
  "name": "someradio",
  "type": "radio",
  "valueType": "string",
  "prompt": "Geometry Type",
  "choices": [
    {
      "value": "poly",
      "display": "polygon"
    },
    {
      "value": "point",
      "display": "point"
    },
    {
      "value": "line",
      "display": "line"
    }
  ],
  "numCols": 3
}