Plugin Author
Meitar
(@meitar)
There’s a text filter added to every table. Unless you moved it, it’s in the top-right corner of each table. The text filter lets you hide rows that don’t match a given phrase.
If you’re trying to filter the table data before it gets printed to the screen, then you need to write a custom function in your functions.php file and attach that function to the gdoc_table_html filter hook.
Thread Starter
Rioxs
(@rioxs)
I mean for the printed data. The option Show/Hide Columns, hide the complete column, what I was trying to say is filter the column not hide… for example:
Column A Column B
Name 1 Brazil
Name 2 Brazil
Name 3 USA
Name 4 Brazil
In this case, filtering the Column B by the keyword “Brazil”, the results will show in the webpage as:
Column A Column B
Name 1 Brazil
Name 2 Brazil
Name 4 Brazil
Without the Name3 which has USA.
Is it possible?
Plugin Author
Meitar
(@meitar)
Yes. Like I said, there’s a text filter at the top-right of each table, right next to the “Show/Hide Columns” button. If you have that table and start typing “Brazil” in that text field, the only rows that will show are the ones with “Brazil” somewhere in them.
Thread Starter
Rioxs
(@rioxs)
Excellent Meitar thanks for your response. One last thing, that filter (text field) accept multiple columns or only one?