Skip to contents

A tree,

Usage

tree(..., id = NULL)

tree_item(..., value = NULL)

tree_item_custom(...)

Arguments

...

Any named properties.

id

ID of the element, optional, if you want to use the tree as input.

value

Value of the element, optional, if you want to use the tree as input.

Details

See tree

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"
    )
  )
)
#> <ui5-tree id="tree" mode="SingleSelect">
#>   <ui5-tree-item text="Parent" icon="paste">
#>     <ui5-tree-item data-value="child" text="Child"></ui5-tree-item>
#>     <ui5-tree-item data-value="child2" text="Second Child"></ui5-tree-item>
#>   </ui5-tree-item>
#> </ui5-tree>