Is it possible to only display rows that have a certain class?

Is it possible to only display rows that have a certain class?

cj1005cj1005 Posts: 98Questions: 30Answers: 1

Hi,

On my 'products' data table, I have a column that contains a shopping cart icon, when clicked it toggles a class on the active row, but I'd like to be able to have a custom button (or checkbox) in the pre-table header area that filters the data table to only show rows with that class.

I can see I can select rows with a certain class, but how do I apply that in the data table?

If possible, could someone point me in the right direction please, as I'm unsure where to start?

Thanks, Chris

Answers

  • colincolin Posts: 12,600Questions: 0Answers: 2,154

    You can do something like this - it's pushing and popping a filter that gets the node, and then checks for a class. Hope that does the trick,

    Colin

Sign In or Register to comment.