pqgrid.min.js:17 Uncaught TypeError: Cannot read property 'getFnW' of undefined at e.(anonymous function).(anonymous function)._pq.pqGrid.getFormula (http://127.0.0.1:5500/library/paramquery/pqgrid.min.js:17:12223) at e.cExport.getXlsBody (pqgrid.min.js:17) at e.cExport.getWorkbook (pqgrid.min.js:17) at e.cExport.Export (pqgrid.min.js:16) at e.(anonymous function).(anonymous function).n.exportData (http://127.0.0.1:5500/library/paramquery/pqgrid.min.js:16:26761) at e.(anonymous function).(anonymous function).exportFile (http://127.0.0.1:5500/public/paramquery_wrapper.js:332:25) at e.(anonymous function).(anonymous function).action (http://127.0.0.1:5500/public/paramquery_module.js:40:75) at e.cContext.onclickDoc (pqgrid.min.js:15) at HTMLBodyElement.dispatch (jquery.min.js:3) at HTMLBodyElement.v.handle (jquery.min.js:3)_pq.pqGrid.getFormula @ pqgrid.min.js:17getXlsBody @ pqgrid.min.js:17getWorkbook @ pqgrid.min.js:17Export @ pqgrid.min.js:16n.exportData @ pqgrid.min.js:16exportFile @ paramquery_wrapper.js:332action @ paramquery_module.js:40onclickDoc @ pqgrid.min.js:15dispatch @ jquery.min.js:3v.handle @ jquery.min.js:3pqgrid.min.js:17 Uncaught TypeError: Cannot read property 'getFnW' of undefined at e.(anonymous function).(anonymous function)._pq.pqGrid.getFormula (http://127.0.0.1:5500/library/paramquery/pqgrid.min.js:17:12223) at e.cExport.getXlsBody (pqgrid.min.js:17) at e.cExport.getWorkbook (pqgrid.min.js:17) at e.cExport.Export (pqgrid.min.js:16) at e.(anonymous function).(anonymous function).n.exportData (http://127.0.0.1:5500/library/paramquery/pqgrid.min.js:16:26761) at e.(anonymous function).(anonymous function).action (http://127.0.0.1:5500/public/paramquery_module.js:45:49) at e.cContext.onclickDoc (pqgrid.min.js:15) at HTMLBodyElement.dispatch (jquery.min.js:3) at HTMLBodyElement.v.handle (jquery.min.js:3)_pq.pqGrid.getFormula @ pqgrid.min.js:17getXlsBody @ pqgrid.min.js:17getWorkbook @ pqgrid.min.js:17Export @ pqgrid.min.js:16n.exportData @ pqgrid.min.js:16action @ paramquery_module.js:45onclickDoc @ pqgrid.min.js:15dispatch @ jquery.min.js:3v.handle @ jquery.min.js:3
export class ParamQuery { exportFile(format) { let blob = this.exportData({ format: format }); if (typeof blob === "string") { blob = new Blob([blob]); } saveAs(blob, "pqGrid." + format); }}export class PQContextMenu extends HelperBase { constructor(instance) { super(instance); this.on = true; this.head = true; this.items = this.getItems; } getItems(evt, ui) { return (ui.$th) ? [] : [ { name: 'Export', subItems: [ { name: 'csv', action: function () { this.wrapper.exportFile.call(this, "csv"); } }, { name: 'html', action: function () { this.wrapper.exportFile.call(this, "html"); } }, { name: 'json', action: function () { this.wrapper.exportFile.call(this, "json"); } }, { name: 'xlsx', action: function () { this.wrapper.exportFile.call(this, "xlsx"); } }, { name: 'xlsxMethod2', action: function () { let blob = this.exportData({ //url: "/pro/demos/exportData", format: "xlsx", nopqdata: false, render: true }); if (typeof blob === "string") { blob = new Blob([blob]); } saveAs(blob, "pqGrid." + "xlsx"); } } ] }, 'separator', { name: "Copy", icon: 'ui-icon ui-icon-copy', shortcut: 'Ctrl - C', //tooltip: "Works only for copy / paste within the same grid", action: function () { this.copy(); } }, { name: "Paste", icon: 'ui-icon ui-icon-clipboard', shortcut: 'Ctrl - V', //disabled: !this.canPaste(), action: function () { this.paste(); //this.clearPaste(); } }, ]; }}