[update] docs related to export with json2excel library#108
Conversation
- add default CDN URL (next/worker.js) to url param description, usage guide, and migration guide - offer next (latest) and x.x (specific version) as parallel options with clear or connector - update code examples to use next as default URL with inline comment for x.x alternative - remove dangling 'Replace x.x' sentences, fold version note into descriptions
- reformat next/x.x version options as bullet lists in all three files - add GitHub repo link to version note in grid_xlsx_method.md - remove stray trailing colon from migration.md bullet - update @example block url to use next with inline version comment
| - `url?: string` - (optional) the path to the **worker.js** file of the [Json2Excel](https://github.com/dhtmlx/json2excel) library (where export will be processed). By default, `https://cdn.dhtmlx.com/libs/json2excel/next/worker.js?vx` is used. For a local export server, set the path to the **worker.js** file relative to your server: | ||
| - use `"../libs/json2excel/next/worker.js?vx"` for the latest version | ||
| - use `"../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)) |
There was a problem hiding this comment.
Для локального экспорта юзеры сами устанавливают путь к воркеру, и наверное логично тут оставить только опцию с х.х:
И чуть ее поправить
- use "../libs/json2excel/x.x/worker.js?vx" for a specific version (replace x.x the version deployed on your server)
актуально для всех подобных мест
| - provide a local path to the **worker.js** file as the `url` option: | ||
| - use `"../libs/json2excel/next/worker.js?vx"` for the latest version | ||
| - use `"../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)) |
There was a problem hiding this comment.
Для локального экспорта юзеры сами устанавливают путь к воркеру, и наверное логично тут оставить только опцию с х.х:
И чуть ее поправить
use "../libs/json2excel/x.x/worker.js?vx" for a specific version (replace x.x the version deployed on your server)
актуально для всех подобных мест
| ~~~jsx | ||
| grid.export.xlsx({ | ||
| url: "../libs/json2excel/1.3/worker.js?vx", // a local path to the export module | ||
| url: "../libs/json2excel/next/worker.js?vx", // latest version; use x.x instead of next for a specific version |
There was a problem hiding this comment.
// the path to the export module, if a local export server is used
(можно и х.x поставить или оставить next)
| // export with config settings | ||
| grid.export.xlsx({ | ||
| url: "../libs/json2excel/1.3/worker.js?vx", // a local path to the `worker.js` file of the export module | ||
| url: "../libs/json2excel/next/worker.js?vx", // latest version; use x.x instead of next for a specific version |
| If you use your own export server, you need to install the **Json2Excel** library and set the path to the **worker.js** file as the `url` option: | ||
| - use `"../libs/json2excel/next/worker.js?vx"` for the latest version | ||
| - use `"../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)) |
There was a problem hiding this comment.
Для локального экспорта юзеры сами устанавливают путь к воркеру, и наверное логично тут оставить только опцию с х.х:
И чуть ее поправить
use "../libs/json2excel/x.x/worker.js?vx" for a specific version (replace x.x the version deployed on your server)
актуально для всех подобных мест
| ~~~jsx | ||
| grid.export.xlsx({ | ||
| url: "../libs/json2excel/1.3/worker.js?vx", // the path to the export module, if a local export server is used | ||
| url: "../libs/json2excel/next/worker.js?vx", // latest version; use x.x instead of next for a specific version |
There was a problem hiding this comment.
оставить старый коммент(можно и х.x поставить или оставить next)
No description provided.