TableExport
TableExport copied to clipboard
The property ‘sheetname’ is not working.
trafficstars
TableExport: version 5.2 Question description: Hi there, I found the property sheetname is now working. you can check the picture I've uploaded. I'm using the exportButtons way to create the export function. can anyone help?

You're following the previous version of doc. You should follow the new doc on the Github homepage
var exportData = table.getExportData();
var xlsxData = exportData.table.xlsx; // Replace with the kind of file you want from the exportData
table.export2file(xlsxData.data, xlsxData.mimeType, xlsxData.filename, xlsxData.fileExtension, xlsxData.merges, xlsxData.RTL, xlsxData.sheetname)