I am using a react bootstrap table to display some data stored in the info
array.
<BootstrapTable data={info} striped={true} hover={true} search={true} condensed={true} selectRow={selectRowProp(onRowSelect, info, selected)}>
<TableHeaderColumn isKey={true} dataField="name"> Name </TableHeaderColumn>
<TableHeaderColumn dataField="class"> Class </TableHeaderColumn>
<TableHeaderColumn dataFormat={myStyle} dataField="price"> Price </TableHeaderColumn>
</BootstrapTable>
Some of the rows may have an extra property oldPrice
, which I would like to show as a tooltip over the shown price. How can I do that?