clarketm / TableExport

The simple, easy-to-implement library to export HTML tables to xlsx, xls, csv, and txt files.
https://tableexport.travismclarke.com/
Apache License 2.0
888 stars 289 forks source link

How to have Header of xlsx format Bold? #105

Open Harri266 opened 6 years ago

Harri266 commented 6 years ago

Hi All,

I am using following code to download the excel file:

var table: any = $( "#"+tableId +' table')[1]; var instance = new TableExport(ExportButtons, { formats: ['xls'], exportButtons: false, filename: fileName, ignoreCols: colIgnore, });

var exportDataXLS = instance.getExportData()[table.id]['xls']; instance.export2file(exportDataXLS.data, exportDataXLS.mimeType, exportDataXLS.filename, exportDataXLS.fileExtension); }, 500);