selectEx
This is a select list field for multiple selection.
Please note, this field depend on the following library:

Special properties of field

Property
Default
Accepted values
Description
multiSelect
none
Boolean
If true, you can select multiple items. In this case the value will be an Array
values
none
Array or Function
List of items. It can be an array with items, or a function, what is resulted an array. The item will be a String or an object with an id and a name properties.
selectOptions
{}
Object
Settings to select component. Read more info from options

selectOptions

@TODO

Usage

Multiple select list with array of strings:

1
{
2
type: "selectEx",
3
label: "Skills",
4
model: "skills",
5
multi: true,
6
required: true,
7
multiSelect: true,
8
selectOptions: {
9
liveSearch: true,
10
maxOptions: 3,
11
size: 4,
12
selectedTextFormat: "count > 3"
13
},
14
values: [
15
"HTML5",
16
"Javascript",
17
"CSS3",
18
"CoffeeScript",
19
"AngularJS",
20
"ReactJS",
21
"VueJS"
22
]
23
}
Copied!

Simple select list:

1
{
2
type: "selectEx",
3
label: "Country",
4
model: "address.country",
5
required: true,
6
multiSelect: false,
7
values: faker.definitions.address.country,
8
default: "United Kingdom",
9
selectOptions: {
10
liveSearch: true,
11
size: 10
12
},
13
validator: validators.required
14
}
Copied!