I am using Vaadin v23 and I am trying to change bg-color of a row when certain condition is met, like below:
grid.setClassNameGenerator(row -> row.getRemoved() ? LumoUtility.Background.CONTRAST : "");
Why doesn't it work?
I tried to do it with custom .css file and it works, but I would prefer to use built-in CONTRAST style.
grid.setClassNameGenerator(row -> row.getRemoved() ? "grid-row-removed" : "";