You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api/methods/js_kanban_parse_method.md
+20-1Lines changed: 20 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,23 @@ description: You can learn about the parse method in the documentation of the DH
10
10
11
11
@short: Parses data into Kanban
12
12
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.
13
+
The `parse()` method is an alias for [`setConfig()`](/api/methods/js_kanban_setconfig_method) restricted to data-related properties (`cards`, `columns`, `rows`, `links`). Both methods perform the same operation under the hood for these properties.
14
+
15
+
:::tip Prefer setConfig()
16
+
Use the [`setConfig()`](/api/methods/js_kanban_setconfig_method) method that accepts the same data properties **plus** other Kanban configuration option. Call `setConfig()` once for all props instead of calling `parse()` for data and `setConfig()` for the other props (such as [`columnKey`](api/config/js_kanban_columnkey_config.md), [`rowKey`](api/config/js_kanban_rowkey_config.md), [`cardShape`](api/config/js_kanban_cardshape_config.md)):
Copy file name to clipboardExpand all lines: docs/howtos.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ In these sections you can find out how to perform operations with cards, work wi
61
61
|[Getting cards state](api/internal/js_kanban_getstate_method.md)| Learn how to get the cards state |
62
62
|[Getting cards reactive state](api/internal/js_kanban_getreactivestate_method.md)| Learn how to get the cards reactive state |
63
63
|[Loading card data](api/config/js_kanban_cards_config.md)| Learn how to load the initial card data |
64
-
|[Parsing card data](api/methods/js_kanban_parse_method.md)| Learn how to parse the card data |
64
+
|[Loading card data dynamically](api/methods/js_kanban_setconfig_method.md)| Learn how to load card data at runtime via `setConfig()` (or its alias [`parse()`](api/methods/js_kanban_parse_method.md))|
65
65
|[Serializing card data](api/methods/js_kanban_serialize_method.md)| Learn how to serialize the card data ([Example](https://snippet.dhtmlx.com/61crsls3?tag=kanban))|
66
66
|[Updating card data](api/methods/js_kanban_updatecard_method.md)| Learn how to update the card data |
67
67
@@ -117,7 +117,7 @@ In these sections you can find out how to perform operations with columns and wo
117
117
|[Getting columns state](api/internal/js_kanban_getstate_method.md)| Learn how to get the columns state |
118
118
|[Getting columns reactive state](api/internal/js_kanban_getreactivestate_method.md)| Learn how to get the columns reactive state |
119
119
|[Loading column data](api/config/js_kanban_columns_config.md)| Learn how to load the initial column data |
120
-
|[Parsing column data](api/methods/js_kanban_parse_method.md)| Learn how to parse the column data |
120
+
|[Loading column data dynamically](api/methods/js_kanban_setconfig_method.md)| Learn how to load column data at runtime via `setConfig()` (or its alias [`parse()`](api/methods/js_kanban_parse_method.md))|
121
121
|[Serializing column data](api/methods/js_kanban_serialize_method.md)| Learn how to serialize the column data |
122
122
|[Updating column data](api/methods/js_kanban_updatecolumn_method.md)| Learn how to update the column data |
123
123
@@ -143,7 +143,7 @@ In these sections you can find out how to perform operations with rows and work
143
143
|[Getting rows state](api/internal/js_kanban_getstate_method.md)| Learn how to get the rows state |
144
144
|[Getting rows reactive state](api/internal/js_kanban_getreactivestate_method.md)| Learn how to get the rows reactive state |
145
145
|[Loading row data](api/config/js_kanban_rows_config.md)| Learn how to load the initial row data |
146
-
|[Parsing row data](api/methods/js_kanban_parse_method.md)| Learn how to parse the row data |
146
+
|[Loading row data dynamically](api/methods/js_kanban_setconfig_method.md)| Learn how to load row data at runtime via `setConfig()` (or its alias [`parse()`](api/methods/js_kanban_parse_method.md))|
147
147
|[Serializing row data](api/methods/js_kanban_serialize_method.md)| Learn how to serialize the row data |
148
148
|[Updating row data](api/methods/js_kanban_updaterow_method.md)| Learn how to update the row data |
0 commit comments