vedmack / yadcf

Yet Another DataTables Column Filter (yadcf)
http://yadcf-showcase.appspot.com/
MIT License
732 stars 284 forks source link

Exact match does not work with multiple items in cell #491

Closed JeroenvO closed 6 years ago

JeroenvO commented 6 years ago

Exact match does not work with multiple items in a cell When selecting 'ab', 'aab' should not be visible.

https://jsfiddle.net/jeroenvo/bzc853hc/66/

vedmack commented 6 years ago

Can you please elaborate more on what do you expect to happen? its a bit of a complex structure that you have in the jsfiddle you are using the html_data_selector: 'li', column_data_type: 'html', so you will get each value as a separate option, therefor exact filtering on that separate value wont match with the origin row

JeroenvO commented 6 years ago

That explains, thanks. What i would like to achieve is that the filter value has an exact match with the text inside the html, in any of the 'li' items in a cell. It indeed is a complex structure, so i totally understand if you don't want to support it.

vedmack commented 6 years ago

You might want to consider the custom function filtering for your case, see SO related Q/A

JeroenvO commented 6 years ago

Okay, thanks for the help!