If set, a label will be generated using label property value as the content.
- Type:
String
- Required: No
Used to add help text below the field.
- Type:
String
- Required: No
If set, multiple values can be selected.
- Type:
Boolean
- Required: No
An array of objects containing the following properties:
-
label:
(string) The label to be shown to the user. -
value:
(Object) The internal value used to choose the selected value. This is also the value passed to onChange when the option is selected. -
Type:
Array
-
Required: No
For more read gutenberg readme.
Example:
selectOption: {
type: 'string',
field: {
type: 'select',
label: 'Select Numbers',
options: [
{
value: 'one',
label: 'one',
},
{
value: 'two',
label: 'two',
},
],
},
}
This will return selected value.
- Type:
string