Select (dropdown)
Properties
Atribute | Description | Type | Required |
---|---|---|---|
value | Will be used as default value. | String | No |
options | An array of objects representing each possible value. Each should have a (String) label and a value. Value can be one of the following types : Array, Object, Number or String. | Array | Yes |
And all the common properties for all components.
Example
{
type: 'select',
category: 'conditions',
label: 'Job',
propName: 'job',
value: 1,
options: [
{ label: 'Dev', value: 1 },
{ label: 'Sysadmin', value: 2 },
{ label: 'Commercial', value: 3 },
],
}
Will render:
Collapsed
Expanded