请考虑以下情况:
tree.Panel
在页面上进行某种导航。internalId
匹配的唯一ID。我打算使用树中的expandPath(path)
方法。我的问题是:如何只使用path
获取internalId
字符串?谢谢。
答案 0 :(得分:8)
不幸的是,函数NodeInterface.getPath
来自extjs4 vanished。所以没有办法使用expandPath(path)
。但是,您可以使用
tree.store.getNodeById('ext-record-23').bubble(function(node){node.expand()});