How to use scrollIntoView() or How can scroll to specif node?
nikunjgadhiya-rishabh opened this issue · 0 comments
nikunjgadhiya-rishabh commented
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