mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2026-06-28 21:20:04 +00:00
Solves #179
This commit is contained in:
@@ -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}\`);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user