In Vaadin 13, I'm using grids. In other programs (eg even Excel) one can create "highlights" of the cells (either the whole cell's baground is highlighted in a color, eg yellow or red or the cell font is higlighted is in a different color) depending on a condition. (This is often used to provide quick visual alerts to the user.)
Is there a safe/easy way to achieve this in Vaadin 13? (I couldn't find any "approved/standard" ways of how to do this using Java & Vaadin 13; I'm not very strong with javascript, but can dabble with it if it's the only "right" way to do this....)
From Vaadin 13 onwards there is setClassNameGenerator method in Grid and Column, which takes lambda as paremeter, returning String. This can be used to produce CSS class name(s) based on e.g. item values. You can then have style module gor the Grid in your shared-styles.html and use these class names there to add e.g. the highlighting of cells etc.