summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorTatu Lund <tatu@vaadin.com>2018-03-27 14:53:15 +0300
committerTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2018-03-27 14:53:15 +0300
commit98be8f19d046f8f0fd7fe5a753bff2c67efed9fd (patch)
treeb7f9a91abdc40c2c791414c80b12e7cdee22f728 /client
parent8b2da456bdbda7cd493bd9dc11bbb1dead368d5c (diff)
downloadvaadin-framework-98be8f19d046f8f0fd7fe5a753bff2c67efed9fd.tar.gz
vaadin-framework-98be8f19d046f8f0fd7fe5a753bff2c67efed9fd.zip
Add row index to ItemClickEvent in Grid (#10754)
Diffstat (limited to 'client')
-rw-r--r--client/src/main/java/com/vaadin/client/connectors/grid/GridConnector.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/main/java/com/vaadin/client/connectors/grid/GridConnector.java b/client/src/main/java/com/vaadin/client/connectors/grid/GridConnector.java
index b9521d06f5..77bcdf0d97 100644
--- a/client/src/main/java/com/vaadin/client/connectors/grid/GridConnector.java
+++ b/client/src/main/java/com/vaadin/client/connectors/grid/GridConnector.java
@@ -108,9 +108,10 @@ public class GridConnector extends AbstractListingConnector
NativeEvent mouseEvent) {
String rowKey = getRowKey((JsonObject) cell.getRow());
String columnId = columnToIdMap.get(cell.getColumn());
+ int rowIndex = cell.getRowIndex();
getRpcProxy(GridServerRpc.class).itemClick(rowKey, columnId,
MouseEventDetailsBuilder
- .buildMouseEventDetails(mouseEvent));
+ .buildMouseEventDetails(mouseEvent), rowIndex);
}
}