angular-tree-component icon indicating copy to clipboard operation
angular-tree-component copied to clipboard

How to use scrollIntoView() or How can scroll to specif node?

Open nikunjgadhiya-rishabh opened this issue 4 years ago • 0 comments

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

nikunjgadhiya-rishabh avatar Jul 16 '21 09:07 nikunjgadhiya-rishabh