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