The function "ensureVisible" uses "expandPath" which takes a callback to call when the necessary expansions have been completed. "ensureVisible" should also offer the callback.
I'm using:
Can we have that small tweak Please?
I'm using:
Ext.override(Ext.tree.TreeNode, {
ensureVisible : function(callback){
this.getOwnerTree().expandPath(this.getPath(), false, callback);
}
});

|
#2
|
|
It's in Rev 3.
![]() |
本文介绍了一个针对ExtJS中TreeNode组件的简单修改,通过调整ensureVisible方法使其支持回调函数,确保节点可见的同时可以执行额外操作。

被折叠的 条评论
为什么被折叠?



