angular-tree-component
angular-tree-component copied to clipboard
How to use scrollIntoView() or How can scroll to specif node?
How can scroll to a specif node? If I have 100 nodes(list-item) in tree-view and currently displaying from 41 to 50 nodes in viewport then I want to scroll direct 5th number node, How can do it?
I have tried to scroll to a node using scrollIntoView() but, it's not working. Ex, someNode.scrollIntoView(); or this.treeViewComponent.tree.treeModel.getNodeById(key).scrollIntoView(true); //TreeModel class