Select Number Editor

Displays a dropdown select box populated with the values from the enum array. Ideal when users need to choose from predefined numeric options.

Activation Conditions

  • "type": "number" or "type": "integer"
  • "enum" array defined

Optional Properties

  • "x-enumTitles" - Human-readable labels that replace the numeric values in the dropdown

Example

{
  "type": "number",
  "title": "Quantity",
  "enum": [
    0,
    1,
    2
  ],
  "x-enumTitles": [
    "None",
    "One",
    "A pair"
  ]
}