[TreeView] Add method to check the existence of optional dependencies #13777
Labels
component: tree view
TreeView, TreeItem. This is the name of the generic UI component, not the React module!
Since #13523 we support optional dependencies for plugins. When using methods from optional dependencies, we need to check if those methods actually exist. We should consider adding a cleaner way to check if the deps exist.
i.e.
instance.hasPlugin(useTreeViewEditLabel)
Originally posted in #13388 (comment)
Search keywords:
The text was updated successfully, but these errors were encountered: