diff options
-rw-r--r-- | documentation/components/components-grid.asciidoc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/documentation/components/components-grid.asciidoc b/documentation/components/components-grid.asciidoc index 7ba60ee6e0..782caa4c5c 100644 --- a/documentation/components/components-grid.asciidoc +++ b/documentation/components/components-grid.asciidoc @@ -971,10 +971,10 @@ property of an item, you can style them as follows: [source, java] ---- -grid.setStyleGenerator(person -> { +grid.setStyleGenerator(person -> // Style based on alive status - person.isAlive() ? null : "dead"; -}); + person.isAlive() ? null : "dead" +); ---- You could then style the rows with CSS as follows: |