]> source.dussan.org Git - vaadin-framework.git/commitdiff
added [source, java] for ComponentRenderer samples (#11428)
authorOlli Tietäväinen <ollit@vaadin.com>
Tue, 22 Jan 2019 08:03:52 +0000 (10:03 +0200)
committerGitHub <noreply@github.com>
Tue, 22 Jan 2019 08:03:52 +0000 (10:03 +0200)
documentation/components/components-grid.asciidoc

index 3994ae907c1a85245eebe7368b41e576488853f5..7ba60ee6e01be92f60d01d9ac5c614881019cbc9 100644 (file)
@@ -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 -> {