Select
Field to pick one of multiple options
The field of type select
is used to store select one of multiple available options. It display a <select>
in the UI.
Example
{
name: "status",
type: "select",
options: [
"enabled",
"disabled",
"unknown",
],
}
Available options
In addition to the common options (see fields documentation for more info), this field has the following options:
options
A list of the available options to select. Each option can be a string or an object with label
and value
properties. Example:
{
name: "status",
type: "select",
options: [
"enabled",
"disabled",
{
label: "Not known",
value: "unknown"
},
],
}