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:

Parameter Type Description
node T The tree item to focus.
scrollIntoView? boolean | undefined Whether to scroll the item into view.

Returns: void