I’m unable to add a class to a table row using this solution. When I inspect on the browser, I always see the row class as either “odd” or “even”. Here’s my code:
That syntax looks okay (your code sample is missing a “=” but your original sample has it, so I’m assuming that’s just a copy/paste error). Maybe try dumping the contents of your data array first, to make sure it contains the values you think it should: