Skip to content

Commit b38899c

Browse files
committed
[update] docs related to export with json2excel/excel2json libraries
1 parent 4a37e2e commit b38899c

3 files changed

Lines changed: 14 additions & 8 deletions

File tree

‎docs/api/spreadsheet_exportmodulepath_config.md‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ exportModulePath?: string;
2020

2121
~~~jsx {2}
2222
const spreadsheet = new dhx.Spreadsheet("spreadsheet", {
23-
exportModulePath: "../libs/json2excel/1.0/worker.js",
23+
exportModulePath: "../libs/json2excel/x.x/worker.js",
2424
// other config parameters
2525
});
2626
~~~
@@ -35,8 +35,10 @@ To export files you need to:
3535

3636
- install the **JSON2excel** library
3737
- 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"`
38+
- by providing a local path to the file on your computer, like: `"../libs/json2excel/x.x/worker.js"`
39+
- by providing a link to the file from CDN: `"https://cdn.dhtmlx.com/libs/json2excel/x.x/worker.js"`
40+
41+
Replace `x.x` with the actual version number (check the [GitHub repository](https://github.com/dhtmlx/json2excel)).
4042

4143
By default the link to CDN is used.
4244

‎docs/loading_data.md‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,12 +306,14 @@ The library uses the WebAssembly-based library [Json2Excel](https://github.com/d
306306

307307
- install the **JSON2Excel** library
308308
- 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+
- by providing a local path to the file on your computer, like: `"../libs/json2excel/x.x/worker.js"`
310+
- by providing a link to the file from CDN: `"https://cdn.dhtmlx.com/libs/json2excel/x.x/worker.js"`
311+
312+
Replace `x.x` with the actual version number (check the [GitHub repository](https://github.com/dhtmlx/json2excel)).
311313

312314
~~~jsx
313315
var spreadsheet = new dhx.Spreadsheet(document.body, {
314-
exportModulePath: "../libs/json2excel/1.0/worker.js"
316+
exportModulePath: "../libs/json2excel/x.x/worker.js"
315317
});
316318
~~~
317319

‎docs/react/props.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,13 @@ Enable sheet tabs with `multiSheets={true}`. Pass `false` to hide the tab bar en
169169
~~~tsx
170170
<ReactSpreadsheet
171171
sheets={sheets}
172-
importModulePath="../libs/excel2json/1.0/worker.js"
173-
exportModulePath="../libs/json2excel/1.0/worker.js"
172+
importModulePath="../libs/excel2json/x.x/worker.js"
173+
exportModulePath="../libs/json2excel/x.x/worker.js"
174174
/>
175175
~~~
176176

177+
Replace `x.x` with the actual version numbers (check the [Excel2Json](https://github.com/dhtmlx/excel2json) and [Json2Excel](https://github.com/dhtmlx/json2excel) GitHub repositories).
178+
177179
### European number formatting
178180

179181
~~~tsx

0 commit comments

Comments
 (0)