/* eslint no-unused-vars: 0 */ 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', title: true }, { dataField: 'name', text: 'Product Name', title: (cell, row, rowIndex, colIndex) => `this is custom title for ${cell}` }, { dataField: 'price', text: 'Product Price' }]; const sourceCode = `\ const columns = [{ dataField: 'id', text: 'Product ID', title: true }, { dataField: 'name', text: 'Product Name', title: (cell, row, rowIndex, colIndex) => \`this is custom title for \${cell}\` }, { dataField: 'price', text: 'Product Price' }]; `; export default () => (

Try to hover on any Product Name cells

{ sourceCode }
);