在treepanel里配置dockedItems
dockedItems: [{
xtype: 'toolbar',
style:"border-top:0px;border-left:0px",
items:[{
xtype:'button',
text:"刷新",
iconCls : "x-btn-text x-tbar-loading",
handler : function (){
treePanel.getStore().load();
},"-", {
iconCls: "icon-expand-all",
text:'展开',
tooltip: "展开所有",
handler: function(){ treePanel.expandAll(); },
scope: this
},"-",{
iconCls: "icon-collapse-all",
text:'折叠',
tooltip: "折叠所有",
handler: function(){ treePanel.collapseAll(); },
scope: this
}]
}],
配置TreePanel的DockedItems
本文介绍如何在TreePanel中配置dockedItems,包括工具栏(toolbar)的样式设置及按钮功能实现,如刷新(treePanel.getStore().load())、展开全部(treePanel.expandAll())和折叠全部(treePanel.collapseAll())等操作。
467

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



