Skip to content

Latest commit

 

History

History
50 lines (44 loc) · 770 Bytes

radio-button.md

File metadata and controls

50 lines (44 loc) · 770 Bytes

Radio Button

{% hint style="success" %} Radio Button Component Integration {% endhint %}

Radio Button component

{% code title="schema.json" %}

{
  "title": "Example for rendering currency component",
  "description": "A simple form with currency component",
  "type": "object",
  "properties": {
    "numberEnumRadio": {
      "type": "number",
      "title": "Number enum",
      "enum": [
        1,
        2,
        3
      ]
    }
  }
}

{% endcode %}

{% code title="uiSchema.json" %}

{
 "numberEnumRadio": {
    "ui:widget": "radio",
    "ui:options": {
      "row": true
    }
  }
}

{% endcode %}

{% code title="formData.json" %}

{
  "numberEnumRadio": 3
}

{% endcode %}