ExtJS4 刷新树中到某一个节点
时间:2011-09-22
来源:互联网
ExtJS3中有Ext.tree.TreeLoader中有load(Ext.tree.TreeNode)方法能实现刷新树中的某个节点的功能,在Ext4中怎么实现呢?查了好多文档都没有找到好到方法!
作者: leecho571 发布时间: 2011-09-22
现在的
TreeStore.load({
node: xxx
})
参考部分treestore源码:
JScript code
TreeStore.load({
node: xxx
})
参考部分treestore源码:
JScript code
load: function(options) { options = options || {}; options.params = options.params || {}; var me = this, node = options.node || me.tree.getRootNode(), root; // If there is not a node it means the user hasnt defined a rootnode yet. In this case lets just // create one for them. if (!node) { node = me.setRootNode({ expanded: true }); } if (me.clearOnLoad) { node.removeAll(); } Ext.applyIf(options, { node: node }); options.params[me.nodeParam] = node ? node.getId() : 'root'; if (node) { node.set('loading', true); } return me.callParent([options]); },
作者: aj3423 发布时间: 2011-09-23
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28