exportModulePath
Description
Optional. Sets the path to the export module
Usage
exportModulePath?: string;
Example
const spreadsheet = new dhx.Spreadsheet("spreadsheet", {
exportModulePath: "../libs/json2excel/1.0/worker.js",
// other config parameters
});
Details
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 providing a local path to the file on your computer, like:
By default the link to CDN is used.
Related articles: Data loading and export
Related sample: Spreadsheet. Custom Import Export Path