summaryrefslogtreecommitdiffstats
path: root/documentation/components
diff options
context:
space:
mode:
authorOlli Tietäväinen <ollit@vaadin.com>2019-01-22 10:03:52 +0200
committerGitHub <noreply@github.com>2019-01-22 10:03:52 +0200
commitc5f774f0f1f3ab02c1ce6ed952a19c41d125b2e6 (patch)
tree6a6e8b55aff5a85965c9df01081cefb1e10af0b7 /documentation/components
parentb3b5f90bf6d4bd9274642e0437ab8ca2ec5c1db8 (diff)
downloadvaadin-framework-c5f774f0f1f3ab02c1ce6ed952a19c41d125b2e6.tar.gz
vaadin-framework-c5f774f0f1f3ab02c1ce6ed952a19c41d125b2e6.zip
added [source, java] for ComponentRenderer samples (#11428)
Diffstat (limited to 'documentation/components')
-rw-r--r--documentation/components/components-grid.asciidoc2
1 files changed, 2 insertions, 0 deletions
diff --git a/documentation/components/components-grid.asciidoc b/documentation/components/components-grid.asciidoc
index 3994ae907c..7ba60ee6e0 100644
--- a/documentation/components/components-grid.asciidoc
+++ b/documentation/components/components-grid.asciidoc
@@ -586,6 +586,7 @@ the height of all rows in the Grid.
+
Use [classname]#Button# in [classname]#Grid#:
+
+[source, java]
----
grid.addComponentColumn(person -> {
Button button = new Button("Click me!");
@@ -603,6 +604,7 @@ example on how to achieve this.
+
Store a [classname]#TextField# with changed value.
+
+[source, java]
----
Map<Person, TextField> textFields = new HashMap<>();
grid.addColumn(person -> {