Skip to content

TreeView: Adding/removing/editing TreeViewItems dynamically #1085

Closed Answered by bdlukaa
pamtbaau asked this question in Q&A
Discussion options

You must be logged in to vote

The current only way to dynamically update a TreeView is by making it lazy and providing the items outside of it. When the items are loaded, just update the variable that holds that data and setState.

You can look at how we do it in the example app: https://bdlukaa.github.io/fluent_ui/#/navigation/tree_view

I would suggest a TreeViewController, but the current approach feels, which would allow finer control to the tree view and its items.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by bdlukaa
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants