You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exportModulePath:"../libs/json2excel/x.x/worker.js?vx", // a local path to the `worker.js` file of the export module
24
24
// other config parameters
25
25
});
26
26
~~~
@@ -31,14 +31,12 @@ const spreadsheet = new dhx.Spreadsheet("spreadsheet", {
31
31
DHTMLX Spreadsheet uses the WebAssembly-based library [JSON2Excel](https://github.com/dhtmlx/json2excel) for export of data into Excel.
32
32
:::
33
33
34
-
To export files you need to:
34
+
To export files you need to set the path to the **worker.js** file of the [Json2Excel](https://github.com/dhtmlx/json2excel) library (where export will be processed) via the **exportModulePath** option. By default, `https://cdn.dhtmlx.com/libs/json2excel/next/worker.js?vx` is used.
35
+
- if you use the public export server, you don't need to specify the link to it, since it is used by default
36
+
- if you use your own export server, you need to:
37
+
- install the [**Json2Excel**](https://github.com/dhtmlx/json2excel) library
38
+
- use `"../libs/json2excel/x.x/worker.js?vx"` for a specific version (replace `x.x` with the version deployed on your server)
35
39
36
-
- install the **JSON2excel** library
37
-
- set the path to the **worker.js** file via the **exportModulePath** option in one of the two ways:
38
-
- by providing a local path to the file on your computer, like: `"../libs/json2excel/1.0/worker.js"`
39
-
- by providing a link to the file from CDN: `"https://cdn.dhtmlx.com/libs/json2excel/1.0/worker.js"`
40
-
41
-
By default the link to CDN is used.
42
40
43
41
**Related articles:**[Data loading and export](loading_data.md#exporting-data)
Copy file name to clipboardExpand all lines: docs/loading_data.md
+13-8Lines changed: 13 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -300,18 +300,21 @@ DHTMLX Spreadsheet provides the ability to export data from a spreadsheet into a
300
300
301
301
#### How to export data
302
302
303
-
{{note Please note that the export feature won't work in the Internet Explorer browser.}}
303
+
:::note
304
+
Please note that the export feature won't work in the Internet Explorer browser.
305
+
:::
304
306
305
-
The library uses the WebAssembly-based library [Json2Excel](https://github.com/dhtmlx/json2excel) to enable the functionality of export to Excel. Thus, to have the possibility of exporting files you need to:
307
+
The library uses the WebAssembly-based library [Json2Excel](https://github.com/dhtmlx/json2excel) to enable the functionality of export to Excel. Export is processed at the **worker.js** file of the **Json2Excel** library (the default link is `https://cdn.dhtmlx.com/libs/json2excel/next/worker.js?vx`). You can use either the public export server or a local export server. Thus, to have the possibility of exporting files you need to:
306
308
307
-
- install the **JSON2Excel** library
308
-
- specify the [](api/spreadsheet_exportmodulepath_config.md) option in the Spreadsheet configuration and set the path to the **worker.js** file in one of the two ways:
309
-
- by providing a local path to the file on your computer, like: `"../libs/json2excel/1.0/worker.js"`
310
-
- by providing a link to the file from CDN: `"https://cdn.dhtmlx.com/libs/json2excel/1.0/worker.js"`
309
+
- specify the [](api/spreadsheet_exportmodulepath_config.md) option in the Spreadsheet configuration and set the path to the **worker.js** file:
310
+
- if you use the public export server, you don't need to specify the link to it, since it is used by default
311
+
- if you use your own export server, you need to:
312
+
- install the [**Json2Excel**](https://github.com/dhtmlx/json2excel) library
313
+
- use `"../libs/json2excel/x.x/worker.js?vx"` for a specific version (replace `x.x` with the version deployed on your server)
311
314
312
315
~~~jsx
313
316
var spreadsheet =newdhx.Spreadsheet(document.body, {
To use a specific version, replace `next` with the version number (check the [Excel2Json](https://github.com/dhtmlx/excel2json) and [Json2Excel](https://github.com/dhtmlx/json2excel) GitHub repositories).
0 commit comments