react-bootstrap-table icon indicating copy to clipboard operation
react-bootstrap-table copied to clipboard

ExportCSV Row & Column Width

Open Abuitime opened this issue 9 years ago • 1 comments

Hello,

Is there a way to customize or at least format the CSV document that is being downloaded? At least make the column and rows fit to the width of the text, and maybe wrap text?

-Thanks, Alex

Abuitime avatar Jan 10 '17 20:01 Abuitime

At least make the column and rows fit to the width of the text, and maybe wrap text?

you can try the csvFormat, check https://github.com/AllenFang/react-bootstrap-table/blob/master/examples/js/manipulation/export-csv-table.js#L34

BTW, i think it's hard to fit the column to the width of text, but you may use csvFormat and append some empty string to make them align.

Let me know if you have any question.

AllenFang avatar Jan 11 '17 03:01 AllenFang