How can I set the background color of the header of a grid(table) in Vaadin. I tried to use:
grid.setCellStyleGenerator(cellRef -> (REFERENCES_INCLUDED_COLUMN + levelList.get(0).getName()).equals(cellRef.getProperty()) ? "rightalign" : null);
where the REFERENCES_INCLUDED_COLUMN has the header information and right align is the CSS styling. But I didn't work.
IS there any css styling which I can do?
I found the answer some where on Vaadin forum. Instead of using
which I feel can be useful if we want to do styling for specific cells, I ended up using proper CSS styling