[update] docs related to export with json2excel/excel2json libraries#62
[update] docs related to export with json2excel/excel2json libraries#62mafanya23 wants to merge 2 commits into
Conversation
…eet docs - add next (latest) and x.x (specific version) as parallel options with bullet lists - update code examples to use next as default with inline comment for x.x alternative - add default CDN URL (next/worker.js?vx) explicitly in exportModulePath config - add ?vx suffix to all CDN URLs - remove standalone 'Replace x.x' sentences, fold version note into descriptions - update react/props.md example and note for both importModulePath and exportModulePath
| - 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)) |
There was a problem hiding this comment.
наверное ссылки на версионные файлы в cdn(те которые не next) не нужно давать, оч мало шансов что юзерам понадобится неактуальная версия
в целом(как я понимаю) - ожидаемые сценарии:
-
юзеры берут next с cdn
-
или используют экспорт локально, тогда они как раз могут сами указывать версию x.x в пути, чтобы знать какая у них версия лежит
так что в моментах с локальным экспорта - можно писать про x.x, а в моментах с cdn - стоит оставить next
| ~~~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 |
There was a problem hiding this comment.
можно не добавлять комментарий
// latest version; use x.x instead of next for a specific version
| importModulePath="../libs/excel2json/next/worker.js" // latest version; use x.x instead of next for a specific version | ||
| exportModulePath="../libs/json2excel/next/worker.js" // latest version; use x.x instead of next for a specific version |
There was a problem hiding this comment.
можно не добавлять комментарии
// latest version; use x.x instead of next for a specific 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)) |
There was a problem hiding this comment.
для cdn можно не указывать эту часть (актуально ко всем cdn фрагментам):
- 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)
| ~~~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 |
There was a problem hiding this comment.
комментарий можно убрать
// latest version; use x.x instead of next for a specific version
| - 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: |
There was a problem hiding this comment.
По поводу фрагмента - by providing a local path to the file on your computer
не оч корректная формулировка и лучше использовать тож самое что и в Suite
For a local export server, set the path to the worker.js file relative to your server:
актуально ко всем местам где оно встречается
No description provided.