Selectize list searchable by label not value
Selectize list searchable by label not value
mak1
Posts: 25Questions: 13Answers: 1
How can I make the datatable searchable by the label of the column in a dropdown and not the value?
I have a selectize list
, {
label: "Holder:",
name: "holder.value",
"type": "selectize",
"options":{{=asis(holders)}}
},
where holders is a list of label,value pairs.
My datatable has:
{ data: 'holder.label',editField: 'holder.value',title: 'Holder', defaultContent: ""},
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
What does
{{=asis(holders)}}
resolve to be?You may need to set the
valueField
andlabelField
options in the selectize configuration. See the Selectize documentation.Allan