Browse Source

added [source, java] for ComponentRenderer samples (#11428)

tags/8.8.0.beta1
Olli Tietäväinen 5 years ago
parent
commit
c5f774f0f1
No account linked to committer's email address
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      documentation/components/components-grid.asciidoc

+ 2
- 0
documentation/components/components-grid.asciidoc View 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 -> {

Loading…
Cancel
Save