Microsoft.Common.OptionsGroup UI element

A selection control with a row of available options. You use this element when creating an Azure Managed Application.

UI sample

Microsoft.Common.OptionsGroup

Schema

{
  "name": "element1",
  "type": "Microsoft.Common.OptionsGroup",
  "label": "Some options group",
  "defaultValue": "Foo",
  "toolTip": "",
  "constraints": {
    "allowedValues": [
      {
        "label": "Foo",
        "value": "Bar"
      },
      {
        "label": "Baz",
        "value": "Qux"
      }
    ]
  },
  "visible": true
}

Remarks

  • The label for constraints.allowedValues is the display text for an item, and its value is the output value of the element when selected.
  • If specified, the default value must be a label present in constraints.allowedValues. If not specified, the first item in constraints.allowedValues is selected by default. The default value is null.
  • constraints.allowedValues must contain at least one item.
  • This element doesn't support the constraints.required property; an item must be selected to validate successfully.

Sample output

"Bar"

Next steps