From c5f774f0f1f3ab02c1ce6ed952a19c41d125b2e6 Mon Sep 17 00:00:00 2001 From: Olli Tietäväinen Date: Tue, 22 Jan 2019 10:03:52 +0200 Subject: added [source, java] for ComponentRenderer samples (#11428) --- documentation/components/components-grid.asciidoc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'documentation') 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 textFields = new HashMap<>(); grid.addColumn(person -> { -- cgit v1.2.3