Skip to main content

exportModulePath

sets the path to the export module

exportModulePath?: string;

Example

var spreadsheet = new dhx.Spreadsheet(document.body, {
exportModulePath: "../libs/json2excel/1.0/worker.js"
});

Related sample: Spreadsheet. Custom Import Export Path

note

DHTMLX Spreadsheet uses the WebAssembly-based library JSON2Excel for export of data into Excel.

To export files you need to:

  • install the JSON2excel library
  • set the path to the worker.js file via the exportModulePath option in one of the two ways:
    • by providing a local path to the file on your computer, like: "../libs/json2excel/1.0/worker.js"
    • by providing a link to the file from CDN: "https://cdn.dhtmlx.com/libs/json2excel/1.0/worker.js"

By default the link to CDN is used.

Related articles

Data loading and export