Ver código fonte

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

tags/8.8.0.beta1
Olli Tietäväinen 5 anos atrás
pai
commit
c5f774f0f1
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2
    0
      documentation/components/components-grid.asciidoc

+ 2
- 0
documentation/components/components-grid.asciidoc Ver arquivo

@@ -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 -> {

Carregando…
Cancelar
Salvar