-
I've two apps that use a TreeView. In both apps the TreeView needs to be dynamically updated by:
I've tried two approaches:
Both approaches feel awkward... Questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The current only way to dynamically update a TreeView is by making it 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 |
Beta Was this translation helpful? Give feedback.
-
I think that roughly describes how I currently do it. |
Beta Was this translation helpful? Give feedback.
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 andsetState
.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.