Ext TabPanel最右边加注销按钮

c100017 2011-11-19 04:00:25
Ext.onReady(function() {
var button = new Ext.Button({
text:'注销',
handler:function(){
Ext.Ajax.request({
url:contextPath+'/cms/user/login'
});
}
});
var view = new Ext.Viewport({
layout : 'fit',
items : {
xtype : 'tabpanel',
activeTab : 0,
tbar : [{
text : '注销',
handler : function() {

}
}],
items : [{
title : '内容管理',
html : '<iframe src="'
+ contextPath
+ '/cms/content/manager" width="100%" height="100%" frameborder="0"/>'
}, {
title : '资源管理',
disabled:userArea!=32,
html : '<iframe src="'
+ contextPath
+ '/cms/resource/manager" width="100%" height="100%" frameborder="0"/>'
}, {
title : '模型管理',
disabled:userArea!=32,
html : '<iframe src="'
+ contextPath
+ '/cms/dynamicContent/contentTypeManager" width="100%" height="100%" frameborder="0"/>'
}, {
title : '模板管理',
disabled:userArea!=32,
html : '<iframe src="'
+ contextPath
+ '/cms/templateManager/manager" width="100%" height="100%" frameborder="0"/>'
}, {
title : '从属于关系管理',
disabled:userArea!=32,
html : '<iframe src="'
+ contextPath
+ '/cms/content/ownerRelationManager" width="100%" height="100%" frameborder="0"/>'
}]
}
});
});


我想在tabpanel的最右边加一个注销按钮,怎么加,求解。
...全文
279 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

10,606

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 其他
社区管理员
  • 其他
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧