From a996b95422174ccef1a212a33fd25fa3c7c66fae Mon Sep 17 00:00:00 2001 From: "A.Mahdy AbdelAziz" Date: Mon, 11 Mar 2019 08:31:02 +0200 Subject: [PATCH] Fix code example (#11487) Fix example of using grid.setStyleGenerator in one line --- documentation/components/components-grid.asciidoc | 6 +++--- 1 file 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: -- 2.39.5