focusItem()
sets focus to an item by its id and moves the scroll to it
focusItem(id: string | number): void;
Parameters:
id: string | number
- the id of an item
Example
tree.focusItem("1");
sets focus to an item by its id and moves the scroll to it
id: string | number
- the id of an itemExample
tree.focusItem("1");