The tree()
component provides a tree structure for displaying data in a hierarchy.
See the official documention for tree, for all the correct props.
Examples
tree(
id = "tree",
mode = "SingleSelect",
tree_item(
text = "Parent",
icon = "paste",
tree_item(
text = "Child",
value = "child"
),
tree_item(
text = "Second Child",
value = "child2"
)
)
)