From ebcf66ad5799739365c225a0dddc8883b4689211 Mon Sep 17 00:00:00 2001 From: Serhii Pylypchuk Date: Tue, 28 Oct 2025 16:51:02 +0100 Subject: [PATCH 1/3] [update] changes for translated versions --- .../current/api/config/js_kanban_editorshape_config.md | 3 +-- .../current/guides/configuration.md | 3 +-- .../current/api/config/js_kanban_editorshape_config.md | 3 +-- .../current/guides/configuration.md | 3 +-- .../current/api/config/js_kanban_editorshape_config.md | 3 +-- .../current/guides/configuration.md | 3 +-- .../current/api/config/js_kanban_editorshape_config.md | 3 +-- .../current/guides/configuration.md | 3 +-- .../current/api/config/js_kanban_editorshape_config.md | 3 +-- .../current/guides/configuration.md | 3 +-- .../current/api/config/js_kanban_editorshape_config.md | 3 +-- .../current/guides/configuration.md | 3 +-- 12 files changed, 12 insertions(+), 24 deletions(-) diff --git a/i18n/cn/docusaurus-plugin-content-docs/current/api/config/js_kanban_editorshape_config.md b/i18n/cn/docusaurus-plugin-content-docs/current/api/config/js_kanban_editorshape_config.md index 5fdd2fd4..9c91ff56 100644 --- a/i18n/cn/docusaurus-plugin-content-docs/current/api/config/js_kanban_editorshape_config.md +++ b/i18n/cn/docusaurus-plugin-content-docs/current/api/config/js_kanban_editorshape_config.md @@ -313,8 +313,7 @@ uploadURL: rec => { .then(res => res.json()) .then( data => { - rec.id = data.id; - return data; + return { id: rec.id, ...data }; }, () => ({ id: rec.id, status: "error" }) ) diff --git a/i18n/cn/docusaurus-plugin-content-docs/current/guides/configuration.md b/i18n/cn/docusaurus-plugin-content-docs/current/guides/configuration.md index e77754c5..32aa0f17 100644 --- a/i18n/cn/docusaurus-plugin-content-docs/current/guides/configuration.md +++ b/i18n/cn/docusaurus-plugin-content-docs/current/guides/configuration.md @@ -313,8 +313,7 @@ new kanban.Kanban("#root", { .then(res => res.json()) .then( data => { - rec.id = data.id; - return data; + return { id: rec.id, ...data }; }, () => ({ id: rec.id, status: "error" }) ) diff --git a/i18n/de/docusaurus-plugin-content-docs/current/api/config/js_kanban_editorshape_config.md b/i18n/de/docusaurus-plugin-content-docs/current/api/config/js_kanban_editorshape_config.md index a59e1e9d..865e3f30 100644 --- a/i18n/de/docusaurus-plugin-content-docs/current/api/config/js_kanban_editorshape_config.md +++ b/i18n/de/docusaurus-plugin-content-docs/current/api/config/js_kanban_editorshape_config.md @@ -313,8 +313,7 @@ uploadURL: rec => { .then(res => res.json()) .then( data => { - rec.id = data.id; - return data; + return { id: rec.id, ...data }; }, () => ({ id: rec.id, status: "error" }) ) diff --git a/i18n/de/docusaurus-plugin-content-docs/current/guides/configuration.md b/i18n/de/docusaurus-plugin-content-docs/current/guides/configuration.md index f16faa47..c7bc0c8d 100644 --- a/i18n/de/docusaurus-plugin-content-docs/current/guides/configuration.md +++ b/i18n/de/docusaurus-plugin-content-docs/current/guides/configuration.md @@ -313,8 +313,7 @@ new kanban.Kanban("#root", { .then(res => res.json()) .then( data => { - rec.id = data.id; - return data; + return { id: rec.id, ...data }; }, () => ({ id: rec.id, status: "error" }) ) diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api/config/js_kanban_editorshape_config.md b/i18n/en/docusaurus-plugin-content-docs/current/api/config/js_kanban_editorshape_config.md index bae326fd..1e42caaf 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api/config/js_kanban_editorshape_config.md +++ b/i18n/en/docusaurus-plugin-content-docs/current/api/config/js_kanban_editorshape_config.md @@ -312,8 +312,7 @@ uploadURL: rec => { .then(res => res.json()) .then( data => { - rec.id = data.id; - return data; + return { id: rec.id, ...data }; }, () => ({ id: rec.id, status: "error" }) ) diff --git a/i18n/en/docusaurus-plugin-content-docs/current/guides/configuration.md b/i18n/en/docusaurus-plugin-content-docs/current/guides/configuration.md index ed80ec43..39dbf856 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/guides/configuration.md +++ b/i18n/en/docusaurus-plugin-content-docs/current/guides/configuration.md @@ -313,8 +313,7 @@ new kanban.Kanban("#root", { .then(res => res.json()) .then( data => { - rec.id = data.id; - return data; + return { id: rec.id, ...data }; }, () => ({ id: rec.id, status: "error" }) ) diff --git a/i18n/ko/docusaurus-plugin-content-docs/current/api/config/js_kanban_editorshape_config.md b/i18n/ko/docusaurus-plugin-content-docs/current/api/config/js_kanban_editorshape_config.md index d1d090fe..fdbd58fb 100644 --- a/i18n/ko/docusaurus-plugin-content-docs/current/api/config/js_kanban_editorshape_config.md +++ b/i18n/ko/docusaurus-plugin-content-docs/current/api/config/js_kanban_editorshape_config.md @@ -313,8 +313,7 @@ uploadURL: rec => { .then(res => res.json()) .then( data => { - rec.id = data.id; - return data; + return { id: rec.id, ...data }; }, () => ({ id: rec.id, status: "error" }) ) diff --git a/i18n/ko/docusaurus-plugin-content-docs/current/guides/configuration.md b/i18n/ko/docusaurus-plugin-content-docs/current/guides/configuration.md index 722d1d47..d2973f4b 100644 --- a/i18n/ko/docusaurus-plugin-content-docs/current/guides/configuration.md +++ b/i18n/ko/docusaurus-plugin-content-docs/current/guides/configuration.md @@ -313,8 +313,7 @@ new kanban.Kanban("#root", { .then(res => res.json()) .then( data => { - rec.id = data.id; - return data; + return { id: rec.id, ...data }; }, () => ({ id: rec.id, status: "error" }) ) diff --git a/i18n/ru/docusaurus-plugin-content-docs/current/api/config/js_kanban_editorshape_config.md b/i18n/ru/docusaurus-plugin-content-docs/current/api/config/js_kanban_editorshape_config.md index 581fd0d3..1052f4f3 100644 --- a/i18n/ru/docusaurus-plugin-content-docs/current/api/config/js_kanban_editorshape_config.md +++ b/i18n/ru/docusaurus-plugin-content-docs/current/api/config/js_kanban_editorshape_config.md @@ -313,8 +313,7 @@ uploadURL: rec => { .then(res => res.json()) .then( data => { - rec.id = data.id; - return data; + return { id: rec.id, ...data }; }, () => ({ id: rec.id, status: "error" }) ) diff --git a/i18n/ru/docusaurus-plugin-content-docs/current/guides/configuration.md b/i18n/ru/docusaurus-plugin-content-docs/current/guides/configuration.md index 711cd4d6..c3a7491a 100644 --- a/i18n/ru/docusaurus-plugin-content-docs/current/guides/configuration.md +++ b/i18n/ru/docusaurus-plugin-content-docs/current/guides/configuration.md @@ -313,8 +313,7 @@ new kanban.Kanban("#root", { .then(res => res.json()) .then( data => { - rec.id = data.id; - return data; + return { id: rec.id, ...data }; }, () => ({ id: rec.id, status: "error" }) ) diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/api/config/js_kanban_editorshape_config.md b/i18n/zh/docusaurus-plugin-content-docs/current/api/config/js_kanban_editorshape_config.md index 63f0e77d..0b9b3eb6 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/api/config/js_kanban_editorshape_config.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/api/config/js_kanban_editorshape_config.md @@ -313,8 +313,7 @@ uploadURL: rec => { .then(res => res.json()) .then( data => { - rec.id = data.id; - return data; + return { id: rec.id, ...data }; }, () => ({ id: rec.id, status: "error" }) ) diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/guides/configuration.md b/i18n/zh/docusaurus-plugin-content-docs/current/guides/configuration.md index 4dc30ab7..ab283e63 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/guides/configuration.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/guides/configuration.md @@ -313,8 +313,7 @@ new kanban.Kanban("#root", { .then(res => res.json()) .then( data => { - rec.id = data.id; - return data; + return { id: rec.id, ...data }; }, () => ({ id: rec.id, status: "error" }) ) From e6f4d7d558df794295b2039cc6c7f8949031465a Mon Sep 17 00:00:00 2001 From: Tatiana Bogdevich Date: Tue, 11 Nov 2025 21:30:47 +0300 Subject: [PATCH 2/3] [update] setConfig note added to all parse notes --- docs/api/config/js_kanban_cards_config.md | 2 +- docs/api/config/js_kanban_columns_config.md | 2 +- docs/api/config/js_kanban_links_config.md | 2 +- docs/api/config/js_kanban_rows_config.md | 2 +- docs/api/methods/js_kanban_parse_method.md | 2 + docs/guides/integration_with_angular.md | 8 +- docs/guides/integration_with_react.md | 7 +- docs/guides/integration_with_svelte.md | 7 +- docs/guides/integration_with_vue.md | 7 +- docs/guides/working_with_data.md | 6 +- .../current/howtos.md | 4 +- .../api/config/js_kanban_cards_config.md | 2 +- .../api/config/js_kanban_columns_config.md | 2 +- .../api/config/js_kanban_links_config.md | 2 +- .../api/config/js_kanban_rows_config.md | 2 +- .../api/methods/js_kanban_parse_method.md | 2 + .../guides/integration_with_angular.md | 6 +- .../current/guides/integration_with_react.md | 6 +- .../current/guides/integration_with_svelte.md | 6 +- .../current/guides/integration_with_vue.md | 6 +- .../current/guides/working_with_data.md | 5 +- yarn.lock | 24189 +++++++--------- 22 files changed, 10135 insertions(+), 14142 deletions(-) diff --git a/docs/api/config/js_kanban_cards_config.md b/docs/api/config/js_kanban_cards_config.md index 4357de15..3495890a 100644 --- a/docs/api/config/js_kanban_cards_config.md +++ b/docs/api/config/js_kanban_cards_config.md @@ -92,7 +92,7 @@ For each card you can specify the following parameters (data): - `custom_key` - (optional) a custom key of the card. You can specify the custom keys to place the card into column and row. See the [columnKey](../js_kanban_columnkey_config) and [rowKey](api/config/js_kanban_rowkey_config.md) properties :::info -If you want to load new data for cards dynamically, you can use the [**parse()**](api/methods/js_kanban_parse_method.md) method! +If you want to load new data for cards dynamically, you can use the [**setConfig()**](api/methods/js_kanban_setconfig_method.md) or [**parse()**](api/methods/js_kanban_parse_method.md) method! ::: ### Example diff --git a/docs/api/config/js_kanban_columns_config.md b/docs/api/config/js_kanban_columns_config.md index 6f7fd086..7168eb58 100644 --- a/docs/api/config/js_kanban_columns_config.md +++ b/docs/api/config/js_kanban_columns_config.md @@ -51,7 +51,7 @@ For each column you can specify the following parameters (data): ~~~ :::info -If you want to load new data for columns dynamically, you can use the [`parse()`](../../methods/js_kanban_parse_method) method! +If you want to load new data for columns dynamically, you can use the [`setConfig()`](../../methods/js_kanban_setconfig_method) or [`parse()`](../../methods/js_kanban_parse_method) method! ::: ### Example diff --git a/docs/api/config/js_kanban_links_config.md b/docs/api/config/js_kanban_links_config.md index 25bfc611..3b544a04 100644 --- a/docs/api/config/js_kanban_links_config.md +++ b/docs/api/config/js_kanban_links_config.md @@ -37,7 +37,7 @@ For each link you can specify the following parameters (data): - ***"parent"*** - defines dependency between parent (master) and child (slave) tasks :::info -If you want to load new data for links dynamically, you can use the [**parse()**](api/methods/js_kanban_parse_method.md) method! +If you want to load new data for links dynamically, you can use the [**setConfig()**](api/methods/js_kanban_setconfig_method.md) or [**parse()**](api/methods/js_kanban_parse_method.md) method! ::: ### Example diff --git a/docs/api/config/js_kanban_rows_config.md b/docs/api/config/js_kanban_rows_config.md index 8a752d31..4645fde4 100644 --- a/docs/api/config/js_kanban_rows_config.md +++ b/docs/api/config/js_kanban_rows_config.md @@ -37,7 +37,7 @@ For each row (swimlane) you can specify the following parameters (data): - `css` - (optional) defines css styles for a separate row :::info -If you want to load new data for rows (swimlanes) dynamically, you can use the [**parse()**](api/methods/js_kanban_parse_method.md) method! +If you want to load new data for rows (swimlanes) dynamically, you can use the [**setConfig()**](api/methods/js_kanban_setconfig_method.md) or [**parse()**](api/methods/js_kanban_parse_method.md) method! ::: ### Example diff --git a/docs/api/methods/js_kanban_parse_method.md b/docs/api/methods/js_kanban_parse_method.md index 3120295d..0aee15c5 100644 --- a/docs/api/methods/js_kanban_parse_method.md +++ b/docs/api/methods/js_kanban_parse_method.md @@ -10,6 +10,8 @@ description: You can learn about the parse method in the documentation of the DH @short: Parses data into Kanban +This method performs the same operation as [`setConfig`](/api/methods/js_kanban_setconfig_method) when used with data-related Kanban settings. It is therefore recommended to use `setConfig` for consistency with other configuration options, although `parse` remains supported as an alias for data parsing. + ### Usage ~~~jsx {} diff --git a/docs/guides/integration_with_angular.md b/docs/guides/integration_with_angular.md index 3dc7e7e0..01e511d3 100644 --- a/docs/guides/integration_with_angular.md +++ b/docs/guides/integration_with_angular.md @@ -253,7 +253,7 @@ export class KanbanComponent implements OnInit, OnDestroy { } ~~~ -You can also use the [`parse()`](/api/methods/js_kanban_parse_method/) method inside the `ngOnInit()` method of Angular to load data into Kanban. +You can also use the [`setConfig()`](/api/methods/js_kanban_setconfig_method/) or [`parse()`](/api/methods/js_kanban_parse_method/) method inside the `ngOnInit()` method of Angular to load data into Kanban. The `setConfig` or `parse()` method provides data reloading on each applied change. ~~~jsx {2,23,37-42} title="kanban.component.ts" import { Kanban, Toolbar } from '@dhx/trial-kanban'; @@ -292,8 +292,8 @@ export class KanbanComponent implements OnInit, OnDestroy { // other configuration properties }); - // apply the data via the parse() method - this._kanban.parse({ + // apply the data via the setConfig() or parse() method + this._kanban.setConfig({ columns, cards, rows @@ -307,8 +307,6 @@ export class KanbanComponent implements OnInit, OnDestroy { } ~~~ -The `parse(data)` method provides data reloading on each applied change. - Now the Kanban component is ready to use. When the element will be added to the page, it will initialize the Kanban with data. You can provide necessary configuration settings as well. Visit our [Kanban API docs](/api/overview/properties_overview/) to check the full list of available properties. #### Handling events diff --git a/docs/guides/integration_with_react.md b/docs/guides/integration_with_react.md index 50111cae..f833bd94 100644 --- a/docs/guides/integration_with_react.md +++ b/docs/guides/integration_with_react.md @@ -254,7 +254,7 @@ export default function KanbanComponent(props) { } ~~~ -You can also use the [`parse()`](/api/methods/js_kanban_parse_method/) method inside the `useEffect()` method of React to load data into Kanban: +You can also use the [`setConfig()`](/api/methods/js_kanban_setconfig_method/) or [`parse()`](/api/methods/js_kanban_parse_method/) method inside the `useEffect()` method of React to load data into Kanban. The `setConfig` or `parse()` method provides data reloading on each applied change. ~~~jsx {9-11,27} title="Kanban.jsx" import { useEffect, useRef } from "react"; @@ -283,7 +283,8 @@ export default function KanbanComponent(props) { // other configuration properties }); - kanban.parse({ columns, cards, rows }); + kanban.setConfig({ columns, cards, rows }); + // or kanban.parse({ columns, cards, rows }); return () => { kanban.destructor(); @@ -298,8 +299,6 @@ export default function KanbanComponent(props) { } ~~~ -The `parse(data)` method provides data reloading on each applied change. - Now the Kanban component is ready. When the element will be added to the page, it will initialize the Kanban with data. You can provide necessary configuration settings as well. Visit our [Kanban API docs](/api/overview/properties_overview/) to check the full list of available properties. #### Handling events diff --git a/docs/guides/integration_with_svelte.md b/docs/guides/integration_with_svelte.md index c13afde4..a1078632 100644 --- a/docs/guides/integration_with_svelte.md +++ b/docs/guides/integration_with_svelte.md @@ -243,7 +243,7 @@ onDestroy(() => { ~~~ -You can also use the [`parse()`](/api/methods/js_kanban_parse_method/) method inside the `onMount()` method of Svelte to load data into Kanban: +You can also use the [`setConfig()`](/api/methods/js_kanban_setconfig_method/) or [`parse()`](/api/methods/js_kanban_parse_method/) method inside the `onMount()` method of Svelte to load data into Kanban. The `setConfig` or `parse()` method provides data reloading on each applied change. ~~~html {6-8,27} title="Kanban.svelte"