aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlli Tietäväinen <ollit@vaadin.com>2019-01-22 10:03:52 +0200
committerSun Zhe <31067185+ZheSun88@users.noreply.github.com>2019-01-22 16:05:19 +0200
commitd7a3169d4f2f5f32eb07176de56083f0154c54c9 (patch)
tree3b78f17e41e237dc815b6a8ad0a2bb747922a317
parent3ba586254af13c89d528fc95f1dfeeeff5c37fd2 (diff)
downloadvaadin-framework-d7a3169d4f2f5f32eb07176de56083f0154c54c9.tar.gz
vaadin-framework-d7a3169d4f2f5f32eb07176de56083f0154c54c9.zip
added [source, java] for ComponentRenderer samples (#11428)
-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 -> {