This commit is contained in:
Parth Prajapati
2018-01-31 07:43:05 +05:30
parent 09fadeb02b
commit feedcb9f4b
2 changed files with 16 additions and 4 deletions

View File

@@ -20,8 +20,8 @@ const columns = [{
}];
const rowEvents = {
onClick: (e) => {
alert('click on row');
onClick: (e, rowIndex) => {
alert(`clicked on row with index: ${rowIndex}`);
}
};
@@ -40,8 +40,8 @@ const columns = [{
}];
const rowEvents = {
onClick: (e) => {
alert('click on row');
onClick: (e, rowIndex) => {
alert(\`clicked on row with index: \${rowIndex}\`);
}
};