File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,8 @@ class Demo extends React.Component {
89
89
< div className = 'panel-heading' > Export CSV Example</ div >
90
90
< div className = 'panel-body' >
91
91
< h5 > Source in /examples/js/manipulation/export-csv-table.js</ h5 >
92
- < h5 > < b > You can use < code > csvFormat</ code > to format cell when exporting.</ b > </ h5 >
92
+ < h5 > < b > Use < code > csvFormat</ code > to format cell when exporting.</ b > </ h5 >
93
+ < h5 > < b > Use < code > csvHeader</ code > to change the header text in csv.</ b > </ h5 >
93
94
< ExportCSVTable />
94
95
</ div >
95
96
</ div >
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export default class ExportCSVTable extends React.Component {
29
29
return (
30
30
< BootstrapTable data = { products } exportCSV = { true } >
31
31
< TableHeaderColumn dataField = 'id' isKey = { true } > Product ID</ TableHeaderColumn >
32
- < TableHeaderColumn dataField = 'name' > Product Name</ TableHeaderColumn >
32
+ < TableHeaderColumn dataField = 'name' csvHeader = 'product-name' > Product Name</ TableHeaderColumn >
33
33
< TableHeaderColumn dataField = 'price' csvFormat = { this . csvFormatter } > Product Price</ TableHeaderColumn >
34
34
</ BootstrapTable >
35
35
) ;
You can’t perform that action at this time.
0 commit comments