Skip to content
This repository was archived by the owner on Jul 25, 2021. It is now read-only.
This repository was 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

@shubhamm829

Description

@shubhamm829

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);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions