yadcf - ambiguous multi_select filter - AND and OR condition - javascript -
multi_select filter select2 in yadcf (datatables plugin) has ambiguous solution filtering. if have inside rows single values like
value1 value2
when filtering have or
filtering. shows rows values1 , values2.
if set text delimiter comma or multiple delimiters (using regex) multiple_select filter behaves and
condition.
example column 0: example
possible have javascript function enables or , condition or or condition according suit needs?
for better exposure made little video of problem , expect see in table.
problem tricky should not difficult solve right javascript code
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
adding feature improvement request:
example used in video: table
the purpose of text delimiter extract values column filter, but... when try pick value filter , apply table, rows selected value located in.
in case want advanced logic executed when pick value should use filter_type: 'custom_func'
or multi_select_custom_func
see how works on the showcase (its first column) scroll down see code used on page.
finally understood problem, while multi select should work or filter on selected values wasn't doing so, have fixed in latest beta 0.8.8.beta.11 , here updated jsfiddle
regarding and question: can't accomplish mutli select + text_data_delimiter
image have column aaa, bbb , user can select aaa bbb (that should work) can select bbb , aaa, , there no regex can spot bbb, aaa aaa, bbb (and small example)
so best solution switch between filter_type: "multi_select"
text_data_delimiter (filter_type: "multi_select"
without text_data_delimiter or filter_type: "select"
)
and there similar issue open that (not sure when implement it)
Comments
Post a Comment