AllenFang / react-bootstrap-table

A Bootstrap table built with React.js
https://allenfang.github.io/react-bootstrap-table/
MIT License
2.24k stars 782 forks source link

Is there a TableHeaderColumn title option available #2014

Closed florentcuret closed 6 years ago

florentcuret commented 6 years ago

Hi Allen, is there a way to set a title to the TableHeaderColumn?

Here is what I have: <TableHeaderColumn dataField='startdate'>SD</TableHeaderColumn>

<th class="sort-column" data-is-only-head="false" title="SD" data-field="start_date" style="text-align: left;">
    SD
</th>

img_6308

Here is what I would like to have: <TableHeaderColumn dataField='startdate' title='starting date'>SD</TableHeaderColumn>

<th class="sort-column" data-is-only-head="false" title="starting date" data-field="start_date" style="text-align: left;">
    SD
</th>

img_6307

using: react-bootstrap-table 4.1.0

florentcuret commented 6 years ago

headerText does the trick.

<th class="sort-column" data-is-only-head="false" headerText="starting date" data-field="start_date" style="text-align: left;">
    SD
</th>