tbar按钮居右
來源:http://topic.csdn.net/u/20090311/09/f4fb5a63-e71a-4429-a118-aad9f0a75d23.html
关键就在于'->',这是tbar里是按钮居右的符号,就像'-'是分隔符一样。
tbar:[{xtype:"label",text:"管理员:"},{xtype:"label",text:Cookies.get("LogName")},'->',{xtype:"tbbutton",id:"button_password",text:"password",handler:function(){if(!win_password){win_password = CreateWindow({el:"win_password",title:"修改密码",items:CreateFormPanel(form_passwordConfig) });}win_password.show("button_password");}},'-',{xtype:"tbbutton",id:"button_reg",text:"register",handler:function(){if(!win_reg){win_reg = CreateWindow({el:"win_reg",title:"修改密码",items:CreateFormPanel(form_regConfig) });}win_reg.show("button_reg");}},'-',{xtype:"tbbutton",text:"logout",handler:function(){Ext.MessageBox.confirm("警告","您确定要注销吗?",function(button){if(button == "yes"){window.location = "../Default.aspx";}});}}]
总结
- 上一篇: windows显卡驱动怎么卸载
- 下一篇: Eclipse RCP 中使用UTF8编