checklist
Last updated
Last updated
This is a checkbox list for multiple selection. The value will be an Array
.
checklistOptions
values
function:If you select the 2nd and 4th items, the value
will be ["Javascript", "CoffeeScript"]
in the model.
If you select the first and last items, the value
will be ["admin", "visitor"]
in the model.
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.
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