in Vaadin8 I would do the following to style a column header in a Grid:
if (null != styleGenerator) { // styleGenerator is a String
column.setStyleGenerator(c -> styleGenerator);
this.getDefaultHeaderRow().getCell(id).setStyleName(styleGenerator); // id is a String
}
In Vaadin14 I was able to reproduce the first part, i.e.: styling the data cells in a column, but not the header cell:
this.getDefaultHeaderRow().getCell(column)... // now what?
Anything I missed? I can’t find help on the official docs (which, by the way, seems not to load for 14.0.1).
Actually I only use single-header columns, so I have no experience in styling - or merely aligning - multiple-header columns.
Maybe anyone in the forum has better ideas?