diff --git a/docs/api/spreadsheet_exportmodulepath_config.md b/docs/api/spreadsheet_exportmodulepath_config.md index 1a050977..e3112d4e 100644 --- a/docs/api/spreadsheet_exportmodulepath_config.md +++ b/docs/api/spreadsheet_exportmodulepath_config.md @@ -20,7 +20,7 @@ exportModulePath?: string; ~~~jsx {2} const spreadsheet = new dhx.Spreadsheet("spreadsheet", { - exportModulePath: "../libs/json2excel/1.0/worker.js", + exportModulePath: "../libs/json2excel/next/worker.js", // latest version; use x.x instead of next for a specific version // other config parameters }); ~~~ @@ -35,10 +35,14 @@ 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. + - by providing a local path to the file on your computer: + - use `"../libs/json2excel/next/worker.js"` for the latest version + - use `"../libs/json2excel/x.x/worker.js"` for a specific version (replace `x.x` with the actual version from the [GitHub repository](https://github.com/dhtmlx/json2excel)) + - by providing a link to the file from CDN: + - use `"https://cdn.dhtmlx.com/libs/json2excel/next/worker.js?vx"` for the latest version + - use `"https://cdn.dhtmlx.com/libs/json2excel/x.x/worker.js?vx"` for a specific version (replace `x.x` with the actual version from the [GitHub repository](https://github.com/dhtmlx/json2excel)) + +By default, `https://cdn.dhtmlx.com/libs/json2excel/next/worker.js?vx` is used. **Related articles:** [Data loading and export](loading_data.md#exporting-data) diff --git a/docs/loading_data.md b/docs/loading_data.md index 2173468f..466667d2 100644 --- a/docs/loading_data.md +++ b/docs/loading_data.md @@ -306,12 +306,16 @@ The library uses the WebAssembly-based library [Json2Excel](https://github.com/d - install the **JSON2Excel** library - 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: - - 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: + - use `"../libs/json2excel/next/worker.js"` for the latest version + - use `"../libs/json2excel/x.x/worker.js"` for a specific version (replace `x.x` with the actual version from the [GitHub repository](https://github.com/dhtmlx/json2excel)) + - by providing a link to the file from CDN: + - use `"https://cdn.dhtmlx.com/libs/json2excel/next/worker.js?vx"` for the latest version + - use `"https://cdn.dhtmlx.com/libs/json2excel/x.x/worker.js?vx"` for a specific version (replace `x.x` with the actual version from the [GitHub repository](https://github.com/dhtmlx/json2excel)) ~~~jsx var spreadsheet = new dhx.Spreadsheet(document.body, { - exportModulePath: "../libs/json2excel/1.0/worker.js" + exportModulePath: "../libs/json2excel/next/worker.js" // latest version; use x.x instead of next for a specific version }); ~~~ diff --git a/docs/react/props.md b/docs/react/props.md index fbdd48fb..e2fe9097 100644 --- a/docs/react/props.md +++ b/docs/react/props.md @@ -169,11 +169,13 @@ Enable sheet tabs with `multiSheets={true}`. Pass `false` to hide the tab bar en ~~~tsx ~~~ +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). + ### European number formatting ~~~tsx