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: 142Questions: 45Answers: 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

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,112Questions: 1Answers: 2,583
    Answer ✓

    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

  • cj1005cj1005 Posts: 142Questions: 45Answers: 1

    Thank you Colin :)

Sign In or Register to comment.