import React from 'react'; import BootstrapTable from 'react-bootstrap-table-next'; import Code from 'components/common/code-block'; import { productsGenerator } from 'utils/common'; const products = productsGenerator(); const columns = [{ dataField: 'id', text: 'Product ID' }, { dataField: 'name', text: 'Product Name' }, { dataField: 'price', text: 'Product Price' }]; const selectRow = { mode: 'checkbox', clickToSelect: true, clickToExpand: true }; const expandRow = { showExpandColumn: true, renderer: row => (
{ `This Expand row is belong to rowKey ${row.id}` }
You can render anything here, also you can add additional data on every row object
expandRow.renderer callback will pass the origin row object to you
{ \`This Expand row is belong to rowKey $\{row.id}\` }
You can render anything here, also you can add additional data on every row object
expandRow.renderer callback will pass the origin row object to you
{ sourceCode }