Skip to content

Commit ae34c44

Browse files
committed
fix wrong story example code
1 parent 8ecdbf6 commit ae34c44

File tree

1 file changed

+9
-2
lines changed
  • packages/react-bootstrap-table2-example/examples/csv

1 file changed

+9
-2
lines changed

packages/react-bootstrap-table2-example/examples/csv/custom-csv.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,13 @@ const columns = [{
4040
keyField="id"
4141
data={ products }
4242
columns={ columns }
43-
exportCSV
43+
exportCSV={ {
44+
fileName: 'custom.csv',
45+
separator: '|',
46+
ignoreHeader: true,
47+
noAutoBOM: false,
48+
blobType: 'text/csv;charset=ansi'
49+
} }
4450
>
4551
{
4652
props => (
@@ -64,7 +70,8 @@ export default () => (
6470
fileName: 'custom.csv',
6571
separator: '|',
6672
ignoreHeader: true,
67-
noAutoBOM: false
73+
noAutoBOM: false,
74+
blobType: 'text/csv;charset=ansi'
6875
} }
6976
>
7077
{

0 commit comments

Comments
 (0)