Open TheInvoker opened 5 years ago
I'm using this right now to force the download automatically. How can I do this in the more cleaner intended way? (because it feels like a hack right now)
exportToExcel : function(table, filename, sheetname) { var g = $(table).hide(); $("body").append(g); $(g).tableExport({ filename: filename, formats: ["xlsx"], sheetname : sheetname }); g.find("caption button").click(); g.remove(); },
I'm using this right now to force the download automatically. How can I do this in the more cleaner intended way? (because it feels like a hack right now)