Welcome back
I tried your approach and it helped, but created another problem that I have been trying to solve for the past 4 hours.
I will try to explain it on an easier example: to-do-list
https://imgur.com/a/dvlevLw
When I lunch the app everything is working properly:
https://imgur.com/a/3ZeobUO
I have a database table and when the column (which is invisible) status is true whole row is green and when not whole row is purple - works fine !
But when I am deleting or trying to add new item everything messes up with random colored (always purple)
https://imgur.com/a/HaNx0Tk
Here is my setColor method:
Here is my filling Table method which also works fine except setColor(); method.
fillTable method is used after deleting from database and adding to database to show new data in table.
And my CSS file:
Here is a whole class if somebody would like to take a peek:
https://pastebin.com/tiKSYHn8