I have a Problem regarding styling a TreeGrid rowise. I want use the ClassNameGenerator to generate classes regarding a POJO object. The problem is, that TreeGrid does not define the "bg-error" class of the Lumo styling locally. Is there a way to use the Lumo style classes inside a TreeGrid?
TreeGrid<POJO> grid = new TreeGrid<>(POJO.class);
grid.setClassNameGenerator(pojo -> {
return "bg-error";
});