Tree
A hierarchical tree component that displays data in a collapsible tree structure. Features customizable node display, lazy loading, filtering, checkbox selection, and advanced data formatting options. Supports both flat list and hierarchical data structures with comprehensive node customization.
Extends: listComponent
Fields
Name | Code | Data Type | Description |
|---|---|---|---|
Label |
| multi-locale | Display label for the tree |
ID |
| text | Unique identifier for the component |
Width |
| text | Controls component width |
Style Classes |
| text | CSS classes for styling |
List |
| text | Array of nodes to display in the tree |
Tree Label Field Name |
| text | Field name to use for node labels |
Tree Children Key Name |
| text | Field name for child nodes array |
Tree Nodes Key Field Name |
| text | Field name for unique node identifiers |
No Nodes Label |
| text | Text to display when tree is empty |
Default Expand All |
| boolean | Automatically expands all nodes on load |
Tick Strategy |
| text | Node selection behavior (none/strict/leaf/leaf-filtered) |
Accordion |
| boolean | Enables accordion-style node expansion |
No Transition |
| boolean | Disables node expand/collapse animations |
Custom Node |
| boolean | Enables custom node template |
HTML Content Function |
| text | Function for custom node HTML rendering |
Data Format |
| text | Input data format (tree/list) |
ID Field Name |
| text | Field name for node IDs in list format |
Parent ID Field Name |
| text | Field name for parent IDs in list format |
Filter |
| boolean | Enables node filtering |
Filter By |
| text | Field name to use for filtering |
Filter Input Style Classes |
| text | CSS classes for filter input |
Methods
Name | Description |
|---|---|
| Processes and formats input data into tree structure |
| Converts flat list data into hierarchical structure |
| Handles lazy loading of child nodes |
| Processes node selection events |
| Handles node click/selection events |
| Renders custom node content using HTML function |
Events
Name | Description |
|---|---|
| Triggered when child nodes need to be loaded |
| Triggered when node selection changes |
| Triggered when a node is clicked/selected |