Skip to content

Tree.setFocusedItem method

Tree › setFocusedItem

Unofficial

Set the focused item in the tree view.

Signature:

setFocusedItem(node: T, scrollIntoView?: boolean | undefined): void

Parameters:

ParameterTypeDescription
nodeTThe tree item to focus.
scrollIntoView?boolean | undefinedWhether to scroll the item into view.

Returns: void