Skip to content
This repository has been archived by the owner on Jul 25, 2021. It is now read-only.

i want to increase width of particular columns when i am exporting html table to xlsx format using tableexport.js. #199

Open
shubhamm829 opened this issue Apr 7, 2020 · 0 comments

Comments

@shubhamm829
Copy link

shubhamm829 commented Apr 7, 2020

My code is:

var ExportButtons = document.getElementById('dynamic-table');
var instance = new TableExport(ExportButtons, {
formats: ['xlsx'],
position: "top",
header:true,
filename: 'Supplier_',
ignoreCols: 7,
trimWhitespace: true,
exportButtons: false,
htmlContent: true,
sheetname: 'Supplier List'

});
var exportData = instance.getExportData()['dynamic-table']['xlsx'];

var xlsxData = exportData.xlsx;

var XLSbutton = document.getElementById('btn_excl');
XLSbutton.addEventListener('click', function (e) {
instance.export2file(exportData.data, exportData.mimeType, exportData.filename, exportData.fileExtension, exportData.merges, exportData.RTL, exportData.sheetname);
});

@shubhamm829 shubhamm829 changed the title i want to increase width of particular columns when i am exporting html table to xlsx format using tableexport.js. i want to increase width of particular columns when i am exporting html table to xlsx format using tableexport.js. Apr 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant