Selection controls
There are multiple ways for a schema to describe a choice from an array of values. These situations can be rendered using different components.
Enums and oneOfs
Simple enums and oneOf expressions are rendered using a select components. If more than 20 items are returned the select will be replaced by a autocomplete component. If the data type is an array these components will be used in multiple mode.
Items from layout and context
It is possible to force rendering a select component and use data from outside the schema as a list of possible values. To do so you can use the layout.items property or write an expression in layout.getItems. For more complex cases it is possible to define layout.getItems.itemsResuls, layout.getItems.itemTitle, layout.getItems.itemValue, layout.getItems.itemKey and layout.itemIcon to transform the items.
Items from HTTP requests
It is also possible to fetch items from HTTP requests by defining the expression getItems.url.
Groups of checkboxes and radios
The components checkbox-group, switch-group and radio-group offer alternative renderings.
Opened selection
In the case of an opened selection (meaning that it is possible to define a value outside of the list of items) the combobox component is used.