tbar按钮居右
來(lái)源:http://topic.csdn.net/u/20090311/09/f4fb5a63-e71a-4429-a118-aad9f0a75d23.html
?
關(guān)鍵就在于'->',這是tbar里是按鈕居右的符號(hào),就像'-'是分隔符一樣。?
?
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("警告","您確定要注銷(xiāo)嗎?",function(button){if(button == "yes"){window.location = "../Default.aspx";}});}}]?
總結(jié)
- 上一篇: windows显卡驱动怎么卸载
- 下一篇: Eclipse RCP 中使用UTF8编