checklist
This is a checkbox list for multiple selection. The value will be an Array
.
Special properties of field
Property
Default
Accepted values
Description
listBox
false
Boolean
If true
, render the items as a listBox. If false
, render as a comboBox.
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 can be a String
, Boolean
, Number
or an Object
(with an value
and a name
properties). You can change value
and name
(under checklistOptions
) to select any properties of that object as value or name.
checklistOptions
{}
Object
Settings to checklist component. See details below.
checklistOptions
checklistOptions
Property
Default
Accepted values
Description
value
none
String
Used to select any properties from object in values
to use as actual value to save in model.
name
none
String
Used to select any properties from object in name
to use as display in the list
Usage
Listbox checklist field with array of strings:
Combobox checklist field with values
function:
values
function:If you select the 2nd and 4th items, the value
will be ["Javascript", "CoffeeScript"]
in the model.
Checklist field with object values:
If you select the first and last items, the value
will be ["admin", "visitor"]
in the model.
Checklist field with custom object values:
Last updated