summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorA.Mahdy AbdelAziz <amahdy@users.noreply.github.com>2019-03-11 08:31:02 +0200
committerAnastasia Smirnova <anasmi@utu.fi>2019-03-11 08:31:02 +0200
commita996b95422174ccef1a212a33fd25fa3c7c66fae (patch)
treee8a188a9262441627b3d2600b33ea65d424845d9 /documentation
parent413766947a53302dc9955aca99ad6407e65e9826 (diff)
downloadvaadin-framework-a996b95422174ccef1a212a33fd25fa3c7c66fae.tar.gz
vaadin-framework-a996b95422174ccef1a212a33fd25fa3c7c66fae.zip
Fix code example (#11487)
Fix example of using grid.setStyleGenerator in one line
Diffstat (limited to 'documentation')
-rw-r--r--documentation/components/components-grid.asciidoc6
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: