Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
* Allows you to nest tree nodes to map out your entire domain model into a tree view
* Delivers out-of-the-box performance and network optimizations through lazy loading and caching of tree nodes
* Offers additional styling customizations through Atlas UI
* Display infinite level of tree nodes by using self-reference entity (available from data widgets version 3.11.0 and above)

### Child detection mode

Check failure on line 23 in content/en/docs/marketplace/platform-supported-content/modules/data-widgets/tree-node.md

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [Mendix.HeadingTitleCase] Use title case capitalization for 'Child detection mode'. Raw Output: {"message": "[Mendix.HeadingTitleCase] Use title case capitalization for 'Child detection mode'.", "location": {"path": "content/en/docs/marketplace/platform-supported-content/modules/data-widgets/tree-node.md", "range": {"start": {"line": 23, "column": 5}}}, "severity": "ERROR"}

Starting from data widgets version 3.11.0, treenode offers 2 ways of rendering child nodes.
* **Manual child rendering** – this is the current available configurations. User needs to put tree node widget (child) inside another treenode widget (parent) and set datasource accordingly.
* **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.

{{< figure src="/attachments/appstore/platform-supported-content/modules/data-widgets/treenode/infinite_treenode.png" alt="self reference entity for treenode" class="no-border" >}}


### Lazy Loading

Expand Down Expand Up @@ -47,6 +57,7 @@

* **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
* Required
* **Parent association** – the association used to select parent. If set, tree node will automatically use infinite tree node child detection modes.
* **Header type** – defines the type of the header
* Default: **Text**
* When set to **Text**, you can configure the **Header caption** property
Expand All @@ -59,8 +70,13 @@
* **Has children** – indicates if the current level of tree nodes has children tree nodes
* Default: **Yes**
* When set to **Yes**, a new region becomes available at the bottom of the widget where you can add another widget as child nodes

{{% alert color="info" %}}The **Has children** configuration will be set automatically on infinite tree node child detection mode.{{% /alert %}}
* **Start expanded** – determines whether the content of the current level of tree nodes starts expanded or collapsed
* Configurable when **Has children** is set to **Yes**; default: **No**

{{% alert color="info" %}}On infinite tree node child detection modes, it is recommended to set this to **No** on big data set. Otherwise it will force tree node to expand directly and load all data at once.{{% /alert %}}

Check failure on line 78 in content/en/docs/marketplace/platform-supported-content/modules/data-widgets/tree-node.md

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [Mendix.CompoundWords] Use 'dataset' instead of 'data set' Raw Output: {"message": "[Mendix.CompoundWords] Use 'dataset' instead of 'data set'", "location": {"path": "content/en/docs/marketplace/platform-supported-content/modules/data-widgets/tree-node.md", "range": {"start": {"line": 78, "column": 123}}}, "severity": "ERROR"}

* **Animate** – defines whether the content is animated when a tree node expands and collapses
* Default: **Yes**

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading