OthersTreeView
TreeView
A tree view presents a hierarchical list.
TreeViewProps
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
data | Node[] | Yes | — | The leaf and branch nodes |
defaultExpandedIds | DefaultExpandedIds | — | — | Receives a list of ids and expand the tree |
isSelected | (node: Node) => boolean | — | — | Predicate to determine the selected node |
label | string | Yes | — | Describe the tree content |
nodeRenderer | (node: Node) => ReactElement | Yes | — | Render prop for each node |
onSelect | (node: Node) => void | — | — | Callback that is called when a node is selected |