Select rows to show by keyword

Select rows to show by keyword

aaagggaaaggg Posts: 2Questions: 1Answers: 0

Hello!

There is a Google Spreadsheet which I want to embed into website on WordPress.
As I understand it, DataTables has flexible filtering by various parameters, but unfortunately I can’t understand how it works.

In one column of my table I will indicate the tags by which I want to filter.
I want to display in the embedded table only those rows that have the required keyword.

So I need filtering not by user in the front-end, but to display only pre-selected rows by tag.

Answers

  • kthorngrenkthorngren Posts: 20,270Questions: 26Answers: 4,765

    So I need filtering not by user in the front-end, but to display only pre-selected rows by tag.

    This example may not be exactly what you want but will show how Datatables can be filtered use checkboxes (which could be tags).
    http://live.datatables.net/wenaxuti/1/edit

    Please post further questions.

    Kevin

  • aaagggaaaggg Posts: 2Questions: 1Answers: 0

    Thank you, Kevin!

    Excuse me, I'm very new to JS and I think I could not rewrite this code to match my needs. Maybe there is another example or could you share your version of code?

    I need such a code to use in the wp plugin.

This discussion has been closed.