I use a dropdown initiated with data-filter-control="select">
with a bootstrap table extension of wenzhixin (github - filter control extension).
I fill the dropdown values with data from a database, such as 'admin', 'report'. I would like to display a label more "user-friendly". Here's a HTML example: <option value='report'>Report only</option>
.
The issue is that if I fetch report from my database and convert it to Report only, it doesn't filter anymore because it's looking for the latter in my database instead of the first.
The dropdown takes only one data and this is used for value AND label, I get that HTML ouput: <option value='report'>report</option>
.
Is it possible to specify a value then a label to display?
EDIT
Screenshots:
Main page:table.html
// copy each file and run in your local, you will get the desired output
filter.js// modified filtercontrol.js
flare.json