Search in column with values without string?
Search in column with values without string?
I have a few columns that do not have cell values made of strings or numbers.
Instead they have icons that will be different depending on if the data value is true or false.
In another table I have a select list with firm values that will perform a search on certain columns and redraw the table accordingly.
In this table I want to do the same, but a normal search won't work since the values aren't strings or numbers.
Is there a way to use search() to show rows that has certain column-cell values being true or false, but where the value is really a specific icon depending on state?
This question has an accepted answers - jump to answer
Answers
This sounds like a good use case for orthogonal data. You can tell DataTables to use different data for search, sort and display. It requires that data to exist, or rendering functions to generate it, but it is quite possible.
Allan
Excellent!