diff --git a/packages/react-bootstrap-table2-example/examples/rows/row-event.js b/packages/react-bootstrap-table2-example/examples/rows/row-event.js index 1a57fb6..591805f 100644 --- a/packages/react-bootstrap-table2-example/examples/rows/row-event.js +++ b/packages/react-bootstrap-table2-example/examples/rows/row-event.js @@ -1,5 +1,5 @@ /* eslint no-unused-vars: 0 */ -/* eslint no-alert: 0 */ +/* eslint no-console: 0 */ import React from 'react'; import BootstrapTable from 'react-bootstrap-table-next'; @@ -21,7 +21,10 @@ const columns = [{ const rowEvents = { onClick: (e, row, rowIndex) => { - alert(`clicked on row with index: ${rowIndex}`); + console.log(`clicked on row with index: ${rowIndex}`); + }, + onMouseEnter: (e, row, rowIndex) => { + console.log(`enter on row with index: ${rowIndex}`); } }; @@ -41,7 +44,10 @@ const columns = [{ const rowEvents = { onClick: (e, row, rowIndex) => { - alert(\`clicked on row with index: \${rowIndex}\`); + console.log(\`clicked on row with index: \${rowIndex}\`); + }, + onMouseEnter: (e, row, rowIndex) => { + console.log(\`enter on row with index: \${rowIndex}\`); } }; @@ -50,7 +56,7 @@ const rowEvents = { export default () => (
{ sourceCode }