Microsoft.Common.DropDown UI element

A selection control with a dropdown list. You use this element when creating an Azure Managed Application.

UI sample

Microsoft.Common.DropDown

Schema

{
  "name": "element1",
  "type": "Microsoft.Common.DropDown",
  "label": "Some drop down",
  "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. The default value is null.
  • constraints.allowedValues must contain at least one item.
  • This element doesn't support the constraints.required property. To emulate this behavior, add an item with a label and value of "" (empty string) to constraints.allowedValues.

Sample output

"Bar"

Next steps