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: content/en/docs/marketplace/platform-supported-content/modules/data-widgets/tree-node.md
+17-1Lines changed: 17 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,16 @@ Mendix recommends using multiple Tree Node widgets in a nested matter. In this w
18
18
* Allows you to nest tree nodes to map out your entire domain model into a tree view
19
19
* Delivers out-of-the-box performance and network optimizations through lazy loading and caching of tree nodes
20
20
* Offers additional styling customizations through Atlas UI
21
+
* Displays an infinite amount of tree nodes by using self-reference entity (available from data widgets version 3.11.0 and above)
22
+
23
+
### Child Detection Mode
24
+
25
+
Starting from data widgets version 3.11.0, Tree Node offers 2 ways of rendering child nodes:
26
+
27
+
***Manual child rendering** – This is the current available configuration. The end-user needs to put tree node widget (child) inside another treenode widget (parent) and set data source accordingly.
28
+
***Infinite tree node** – This is a recursive mode whereas the children have self reference to the same entity as the parent. In this mode, the widget will render child automatically. Data with empty parents will be automatically used as root.
29
+
30
+
{{< figure src="/attachments/appstore/platform-supported-content/modules/data-widgets/treenode/infinite_treenode.png" alt="self reference entity for treenode" class="no-border" >}}
21
31
22
32
### Lazy Loading
23
33
@@ -47,7 +57,8 @@ Drag the Tree Node widget onto the page and use the configuration properties des
47
57
48
58
***Data source** – the data source of the widget, which can also be optionally used as the data source for the header and content of the widget
49
59
* Required
50
-
***Header type** – defines the type of the header
60
+
***Parent association** – the association used to select a parent. If set, tree node will automatically use infinite tree node child detection modes.
61
+
***Header type** – defines the type of the header:
51
62
* Default: **Text**
52
63
* When set to **Text**, you can configure the **Header caption** property
53
64
* When set to **Custom**, a new region becomes available where you can configure the header through other widgets
@@ -59,8 +70,13 @@ Drag the Tree Node widget onto the page and use the configuration properties des
59
70
***Has children** – indicates if the current level of tree nodes has children tree nodes
60
71
* Default: **Yes**
61
72
* When set to **Yes**, a new region becomes available at the bottom of the widget where you can add another widget as child nodes
73
+
74
+
{{% alert color="info" %}}The **Has children** configuration will be set automatically on infinite tree node child detection mode.{{% /alert %}}
62
75
***Start expanded** – determines whether the content of the current level of tree nodes starts expanded or collapsed
63
76
* Configurable when **Has children** is set to **Yes**; default: **No**
77
+
78
+
{{% alert color="info" %}}On infinite tree node child detection modes, we recommend setting **Has children** to **No** for large data sets. Otherwise, the setting will force the tree node to expand directly, loading all data at once.{{% /alert %}}
79
+
64
80
***Animate** – defines whether the content is animated when a tree node expands and collapses
0 commit comments