2013-12-18 39 views
0

這是我在android上部署的sencha應用的屏幕截圖。我查看頂部的兩個藍色條。我想要的只是刪除其中的一個。任何想法如何做到這一點?下面給出刪除標題欄或在sencha添加按鈕

Remove title bar or add button to it

的codeis。希望這會有所幫助

Ext.define('appointMeDr.view.signUp.SignUp',{ 
extend:'Ext.form.Panel', 
xtype:'signUpXType', 
config:{ 
    scrollable:'vertical',   
    items:[ 
     { 
     xtype: 'toolbar', 
     title: 'Sign Up', 
     docked: 'top', 
     items:[ { 
      xtype:'button', 
      text: 'Back', 
      ui: 'back', 
      cls: 'back', 
      name: 'backToLogin' 
     } 
     ] 
    }, 
    { 
     xtype:'fieldset', 
     defaults :{ 
      labelWidth : '120px' 
     }, 
     items:[ 
     { 
      xtype:'textfield', 
      label:'<sup>*</sup> Full Name: ', 
      placeHolder:'Full Name', 
      name:'name'    
     }, 
     { 
      xtype: 'emailfield', 
      label: '<sup>*</sup> Email', 
      placeHolder:'Email', 
      name: 'email' 
     }, 
     { 
      xtype:'textfield', 
      label:'<sup>*</sup> User Name: ', 
      placeHolder:'User Name', 
      name:'username'    
     }, 
     { 
      xtype: 'passwordfield', 
      label: '<sup>*</sup> Password', 
      placeHolder:'Password', 
      name: 'password' 
     }, 
     { 
      xtype:'textfield', 
      label:'<sup>*</sup> Age: ', 
      placeHolder:'Age', 
      name:'age'    
     }, 
     { 
      xtype: 'selectfield', 
      name:'gender', 
      label: 'Gender', 
      options: [ 
      { 
       text: 'Male', 
       value: 'Male' 
      }, 
      { 
       text: 'Female', 
       value: 'Female' 
      } 
      ] 
     }, 
     { 
      xtype:'textfield', 
      label:'<sup>*</sup> Address : ', 
      placeHolder:'Address', 
      name:'address'    
     }, 
     { 
      xtype: 'selectfield', 
      name:'Domain', 
     label: 'Select Domain', 
      options: [ 
      { 
       text: 'Patient', 
       value: 'first' 
      }, 

      { 
       text: 'Doctor', 
       value: 'second' 
      }, 

      { 
       text: 'Guardian', 
       value: 'third' 
      }, 
      { 
       text: 'Attendant', 
       value: 'forth' 
      } 
      ] 
     } 

     ] 
    },{ 
     xtype:'panel', 
     margin:'10px', 
     items:[ 
     { 
      xtype:'button', 
      text:'Sign Up', 
      flex:1, 
      name:'userSignUpBtn', 
      docked:'right' 
     } 
     ] 
    } 
    ] 
} 

});

+0

沒有任何澄清和相關的源代碼,你怎麼能幫助你? –

+0

@ThiemNguyen查看編輯 –

+1

在哪個容器中有註冊面板?如果我直接添加註冊面板到視口,我只能看到一個藍色的條形圖:https://fiddle.sencha.com/#fiddle/29h – Akatum

回答

5

可能的youre使用導航視圖並加載它包含一個工具欄,導航視圖,這樣你得到的是
1.從導航視圖從面板視圖
2.第二個藍色酒吧藍色酒吧另一面板

你可以做的是直接加載視圖到視口,而不是導航視圖 希望這會有所幫助:)

+0

我剛剛刪除了導航欄:)並完成了 –