reveal
abstract fun reveal(element: T, options: TreeView.RevealOptions = definedExternally): PromiseLike<Void?>(source)
Reveals the given element in the tree view. If the tree view is not visible then the tree view is shown and element is revealed.
By default revealed element is selected. In order to not to select, set the option select
to false
. In order to focus, set the option focus
to true
. In order to expand the revealed element, set the option expand
to true
. To expand recursively set expand
to the number of levels to expand.
NOTE: You can expand only to 3 levels maximum.
NOTE: The TreeDataProvider that the
TreeView
is registered with} with must implement {@link TreeDataProvider.getParent getParent method to access this API.