Creating an Expandable List
Is there a built-in component within OpenSpan that allows for displaying a list with hierarchical elements? I'm trying to create a list with certain items having an expandable view due to sub-items, but I'm not sure which component I should be using. The TreeView component sounds like what I'm looking for but I'm not sure how to add parent items vs sub items into it. Any help or creative solutions would be appreciated!




Here is how you would do it. This example assigns the key and the text to each TreeNode as the same value and expects that each is unique. You may add root nodes directly, but before adding child nodes you must select the parent node for the child.
Here is the AddSubNode automation:
To create these automations you will need to go to the Explore Component Properties section for the TreeView:
Select Nodes and you will find the methods as seen below:
Here is how you would do it. This example assigns the key and the text to each TreeNode as the same value and expects that each is unique. You may add root nodes directly, but before adding child nodes you must select the parent node for the child.
Here is the AddSubNode automation:
To create these automations you will need to go to the Explore Component Properties section for the TreeView:
Select Nodes and you will find the methods as seen below: