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