Skip to content

Commit b39357e

Browse files
authored
Merge pull request #72 from DHTMLX/next
[update] changes for translated versions
2 parents 703d87d + ceec08d commit b39357e

34 files changed

+10146
-14165
lines changed

docs/api/config/js_kanban_cards_config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ For each card you can specify the following parameters (data):
9292
- `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
9393

9494
:::info
95-
If you want to load new data for cards dynamically, you can use the [**parse()**](api/methods/js_kanban_parse_method.md) method!
95+
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!
9696
:::
9797

9898
### Example

docs/api/config/js_kanban_columns_config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ For each column you can specify the following parameters (data):
5151
~~~
5252

5353
:::info
54-
If you want to load new data for columns dynamically, you can use the [`parse()`](../../methods/js_kanban_parse_method) method!
54+
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!
5555
:::
5656

5757
### Example

docs/api/config/js_kanban_links_config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ For each link you can specify the following parameters (data):
3737
- ***"parent"*** - defines dependency between parent (master) and child (slave) tasks
3838

3939
:::info
40-
If you want to load new data for links dynamically, you can use the [**parse()**](api/methods/js_kanban_parse_method.md) method!
40+
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!
4141
:::
4242

4343
### Example

docs/api/config/js_kanban_rows_config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ For each row (swimlane) you can specify the following parameters (data):
3737
- `css` - (optional) defines css styles for a separate row
3838

3939
:::info
40-
If you want to load new data for rows (swimlanes) dynamically, you can use the [**parse()**](api/methods/js_kanban_parse_method.md) method!
40+
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!
4141
:::
4242

4343
### Example

docs/api/methods/js_kanban_parse_method.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ description: You can learn about the parse method in the documentation of the DH
1010

1111
@short: Parses data into Kanban
1212

13+
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.
14+
1315
### Usage
1416

1517
~~~jsx {}

docs/guides/integration_with_angular.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ export class KanbanComponent implements OnInit, OnDestroy {
253253
}
254254
~~~
255255

256-
You can also use the [`parse()`](/api/methods/js_kanban_parse_method/) method inside the `ngOnInit()` method of Angular to load data into Kanban.
256+
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.
257257

258258
~~~jsx {2,23,37-42} title="kanban.component.ts"
259259
import { Kanban, Toolbar } from '@dhx/trial-kanban';
@@ -292,8 +292,8 @@ export class KanbanComponent implements OnInit, OnDestroy {
292292
// other configuration properties
293293
});
294294

295-
// apply the data via the parse() method
296-
this._kanban.parse({
295+
// apply the data via the setConfig() or parse() method
296+
this._kanban.setConfig({
297297
columns,
298298
cards,
299299
rows
@@ -307,8 +307,6 @@ export class KanbanComponent implements OnInit, OnDestroy {
307307
}
308308
~~~
309309

310-
The `parse(data)` method provides data reloading on each applied change.
311-
312310
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.
313311

314312
#### Handling events

docs/guides/integration_with_react.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export default function KanbanComponent(props) {
254254
}
255255
~~~
256256

257-
You can also use the [`parse()`](/api/methods/js_kanban_parse_method/) method inside the `useEffect()` method of React to load data into Kanban:
257+
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.
258258

259259
~~~jsx {9-11,27} title="Kanban.jsx"
260260
import { useEffect, useRef } from "react";
@@ -283,7 +283,8 @@ export default function KanbanComponent(props) {
283283
// other configuration properties
284284
});
285285

286-
kanban.parse({ columns, cards, rows });
286+
kanban.setConfig({ columns, cards, rows });
287+
// or kanban.parse({ columns, cards, rows });
287288

288289
return () => {
289290
kanban.destructor();
@@ -298,8 +299,6 @@ export default function KanbanComponent(props) {
298299
}
299300
~~~
300301

301-
The `parse(data)` method provides data reloading on each applied change.
302-
303302
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.
304303

305304
#### Handling events

docs/guides/integration_with_svelte.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ onDestroy(() => {
243243
</div>
244244
~~~
245245

246-
You can also use the [`parse()`](/api/methods/js_kanban_parse_method/) method inside the `onMount()` method of Svelte to load data into Kanban:
246+
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.
247247

248248
~~~html {6-8,27} title="Kanban.svelte"
249249
<script>
@@ -272,7 +272,8 @@ onMount(() => {
272272
// other configuration properties
273273
})
274274
275-
kanban.parse({ columns, cards, rows });
275+
kanban.setConfig({ columns, cards, rows });
276+
// or kanban.parse({ columns, cards, rows });
276277
});
277278
278279
onDestroy(() => {
@@ -287,8 +288,6 @@ onDestroy(() => {
287288
</div>
288289
~~~
289290

290-
The `parse(data)` method provides data reloading on each applied change.
291-
292291
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.
293292

294293
#### Handling events

docs/guides/integration_with_vue.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ export default {
275275
</template>
276276
~~~
277277

278-
You can also use the [`parse()`](/api/methods/js_kanban_parse_method/) method inside the `mounted()` method of Vue to load data into Kanban:
278+
You can also use the [`setConfig()`](/api/methods/js_kanban_setconfig_method/) or [`parse()`](/api/methods/js_kanban_parse_method/) method inside the `mounted()` method of Vue to load data into Kanban. The `setConfig` or `parse()` method provides data reloading on each applied change.
279279

280280
~~~html {6,22-26} title="Kanban.vue"
281281
<script>
@@ -299,11 +299,12 @@ export default {
299299
// other configuration properties
300300
});
301301
302-
this.kanban.parse({
302+
this.kanban.setConfig({
303303
cards: this.cards,
304304
columns: this.columns,
305305
rows: this.rows
306306
});
307+
307308
},
308309
309310
unmounted() {
@@ -321,8 +322,6 @@ export default {
321322
</template>
322323
~~~
323324

324-
The `parse(data)` method provides data reloading on each applied change.
325-
326325
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.
327326

328327
#### Handling events

docs/guides/working_with_data.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,15 @@ new kanban.Kanban("#root", {
125125

126126
## Loading data from local source
127127

128-
To load data for ***columns***, ***rows***, ***cards***, and ***links*** from a local source, you can use the [`parse()`](api/methods/js_kanban_parse_method.md) method. It takes an object with the needed data as a parameter.
128+
To load data for ***columns***, ***rows***, ***cards***, and ***links*** from a local source, you can use the [`setConfig()`](api/methods/js_kanban_setconfig_method.md) or [`parse()`](api/methods/js_kanban_parse_method.md) method.
129129

130130
~~~js {4}
131131
const board = new kanban.Kanban("#root", {});
132132

133133
// loading data into Kanban
134-
board.parse({ columns, cards, rows });
134+
board.setConfig({ columns, cards, rows });
135+
136+
// or board.parse({ columns, cards, rows });
135137
~~~
136138

137139
## Syncing Kanban data with Gantt and Scheduler

0 commit comments

Comments
 (0)