Skip to content

Radio

radio

Description

Displays a list of radio controls.

Attributes

  • default
  • $data key/value pairs
  • enum flat list of values
  • $capture.sort: true | false
  • $capture.transform: "capitalize" | "upper" | "de-kebab"

Example

{
  "type": "string",
  "$capture": {
    "as": "radio",
    "sort": true,
    "transform": "capitalize"
  },
  "$display": {},
  "title": "radio metrics",
  "$data": {
    "source": [
      {
        "display": "male",
        "value": "male",
        "tableData": {
          "id": 0
        }
      },
      {
        "display": "female",
        "value": "female",
        "tableData": {
          "id": 1
        }
      }
    ]
  }
}