TableExport icon indicating copy to clipboard operation
TableExport copied to clipboard

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

Open shubhamm829 opened this issue 5 years ago • 0 comments
trafficstars

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 avatar Apr 07 '20 09:04 shubhamm829