aboutsummaryrefslogtreecommitdiffstats
path: root/documentation/components/components-grid.asciidoc
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/components/components-grid.asciidoc')
-rw-r--r--documentation/components/components-grid.asciidoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/documentation/components/components-grid.asciidoc b/documentation/components/components-grid.asciidoc
index 1195a1c79a..160b97f077 100644
--- a/documentation/components/components-grid.asciidoc
+++ b/documentation/components/components-grid.asciidoc
@@ -576,12 +576,12 @@ the height of all rows in the Grid.
Use [classname]#Button# in [classname]#Grid#:
+
----
-grid.addColumn(person -> {
+grid.addComponentColumn(person -> {
Button button = new Button("Click me!");
button.addClickListener(click ->
Notification.show("Clicked: " + person.toString()));
return button;
-}, new ComponentRenderer());
+});
// make sure the buttons fit in the cells of the Grid
grid.setRowHeight(40);
----