我设置了好几个title
如下
tems: [
{
title: "电子邮件",
iconCls: 'toolEmail',
items: [{ xtype: 'box', el: 'dv_Mail' }, mainMenuMailTree]
},
{
title: "主菜单",
iconCls: 'toolNav',
items: mainMenuTree,
tools: [{
id: 'up',
handler: function(e, toolEl, panel) {
mainMenuTree.root.collapse(true, true);
}
}, { id: 'down',
handler: function(e, toolEl, panel) {
mainMenuTree.root.expand(true, true);
}
}
]
}, {
title: "在线聊天",
iconCls: 'toolTall',
items: [{
xtype: 'box',
el: 'divChat'
}
]
}, {
title: "控制面板",
iconCls: 'toolSetting',
items: mainMenucontrolTree,
tools: [{
id: 'up',
handler: function(e, toolEl, panel) {
mainMenucontrolTree.root.collapse(true, true);
}
}, { id: 'down',
handler: function(e, toolEl, panel) {
mainMenucontrolTree.root.expand(true, true);
}
}
]我现在 想根据条件 隐藏(展现)某条title 怎么搞?网上资料太少了 请各位赐教!
如下
tems: [
{
title: "电子邮件",
iconCls: 'toolEmail',
items: [{ xtype: 'box', el: 'dv_Mail' }, mainMenuMailTree]
},
{
title: "主菜单",
iconCls: 'toolNav',
items: mainMenuTree,
tools: [{
id: 'up',
handler: function(e, toolEl, panel) {
mainMenuTree.root.collapse(true, true);
}
}, { id: 'down',
handler: function(e, toolEl, panel) {
mainMenuTree.root.expand(true, true);
}
}
]
}, {
title: "在线聊天",
iconCls: 'toolTall',
items: [{
xtype: 'box',
el: 'divChat'
}
]
}, {
title: "控制面板",
iconCls: 'toolSetting',
items: mainMenucontrolTree,
tools: [{
id: 'up',
handler: function(e, toolEl, panel) {
mainMenucontrolTree.root.collapse(true, true);
}
}, { id: 'down',
handler: function(e, toolEl, panel) {
mainMenucontrolTree.root.expand(true, true);
}
}
]我现在 想根据条件 隐藏(展现)某条title 怎么搞?网上资料太少了 请各位赐教!
tabpanel.activate(Ext.getCmp('id')) id是你要展现某条title的id
你看看这样是否可以实现