Skip to content

Latest commit

 

History

History
49 lines (45 loc) · 1.17 KB

README.md

File metadata and controls

49 lines (45 loc) · 1.17 KB

Choices

You can use a combo box or radio buttons to let users select one of the choices.

choices

"components": [
    {
        "type": "combo",
        "label": "Combo box",
        "items": [
            {
                "label": "one",
                "value": "1"
            },
            {
                "label": "two",
                "value": "2"
            },
            {
                "label": "3"
            }
        ]
    },
    {
        "type": "radio",
        "label": "Radio buttons",
        "items": [
            {
                "label": "one",
                "value": "1"
            },
            {
                "label": "two",
                "value": "2"
            },
            {
                "label": "3"
            }
        ]
    }
]

combo is the type for a combo box, and radio is for radio buttons.
They require items to specify choices.
Each item should have a label to specify the string that will be displayed in the GUI.
You can also use value to specify the actual value that will be injected into commands.