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.asciidoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/documentation/components/components-grid.asciidoc b/documentation/components/components-grid.asciidoc
index 8ecbe85c72..1195a1c79a 100644
--- a/documentation/components/components-grid.asciidoc
+++ b/documentation/components/components-grid.asciidoc
@@ -448,7 +448,7 @@ Grid<Person> grid = new Grid<>(people);
// Render a button that deletes the data row (item)
grid.addColumn(person -> "Delete",
new ButtonRenderer(clickEvent -> {
- people.remove(clickEvent.getValue());
+ people.remove(clickEvent.getItem());
grid.setItems(people);
}));
----