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: 99Questions: 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

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 12,911Questions: 0Answers: 2,200
    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: 99Questions: 30Answers: 1

    Thank you Colin :)

Sign In or Register to comment.