From 4b5ba037437977b54a577084e0779f53e9b02785 Mon Sep 17 00:00:00 2001 From: AllenFang Date: Thu, 13 Jul 2017 23:12:13 +0800 Subject: [PATCH] example for #1296 --- examples/js/selection/row-click-table.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/js/selection/row-click-table.js b/examples/js/selection/row-click-table.js index 8d222222a..0d23c3abe 100644 --- a/examples/js/selection/row-click-table.js +++ b/examples/js/selection/row-click-table.js @@ -18,11 +18,11 @@ function addProducts(quantity) { } } -addProducts(5); +addProducts(50); const options = { - onRowClick: function(row, columnIndex) { - alert(`You click row id: ${row.id}, column index: ${columnIndex}`); + onRowClick: function(row, columnIndex, rowIndex) { + alert(`You click row id: ${row.id}, column index: ${columnIndex}, row index: ${rowIndex}`); }, onRowDoubleClick: function(row) { alert(`You double click row id: ${row.id}`); @@ -32,7 +32,7 @@ const options = { export default class SingleSelectTable extends React.Component { render() { return ( - + Product ID Product Name Product Price