feat(tree-view): add showNode accessor

Closes #1377
This commit is contained in:
Eric Liu 2023-11-12 10:59:27 -08:00
commit eedac49ab3
7 changed files with 150 additions and 15 deletions

View file

@ -92,4 +92,12 @@ Use the `TreeView.collapseNodes` method to collapse a subset of nodes.
If no argument is provided, all nodes will be collapsed.
<FileSource src="/framed/TreeView/TreeViewCollapseNodes" />
<FileSource src="/framed/TreeView/TreeViewCollapseNodes" />
## Show a specific node
Use the `TreeView.showNode` method to show a specific node.
If a matching node is found, it will be expanded, selected, and focused.
<FileSource src="/framed/TreeView/TreeViewShowNode" />