ExtJs: Tree: how to scroll directly to a specific element?

后端 未结 5 430
走了就别回头了
走了就别回头了 2021-01-07 08:03

I\'m looking for a way to scroll to a specific element in a Tree. Any idea how to do this ?

5条回答
  •  渐次进展
    2021-01-07 08:41

    Try this in your node click event handler:

    node.getUI().getIconEl().scrollIntoView(node.getOwnerTree(), false);
    

提交回复
热议问题