Fix example of using grid.setStyleGenerator in one linetags/8.8.0.beta1
[source, java] | [source, java] | ||||
---- | ---- | ||||
grid.setStyleGenerator(person -> { | |||||
grid.setStyleGenerator(person -> | |||||
// Style based on alive status | // Style based on alive status | ||||
person.isAlive() ? null : "dead"; | |||||
}); | |||||
person.isAlive() ? null : "dead" | |||||
); | |||||
---- | ---- | ||||
You could then style the rows with CSS as follows: | You could then style the rows with CSS as follows: |