react-bootstrap-table
react-bootstrap-table copied to clipboard
ExportCSV Row & Column Width
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
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.