sencha touch 2 - how to hide titleBar in list? -
by default list not have titlebar, when create list in such way has empty titlebar
ext.define('application.view.recipelist', { extend: 'ext.list', xtype: 'recipelist', requires: ['application.store.recipes'], id:'list', config: { grouped: true, itemtpl: '{title}', store: 'recipes', onitemdisclosure: true } }); can me understand how hide titlebar?
the empty bar navigation bar.
if want hide need set navigationbar false in mainpanel
update
config: { navigationbar: false, items: [{ xtype: 'recipelist', }] } update
here's how add searchbar in navigationbar
this.getmain().getnavigationbar().add({ xtype: 'searchfield', itemid:'contact_search', placeholder: 'search....', listeners: { scope: this, clearicontap: this.onsearchclearicontap, keyup: this.onsearchkeyup } }); but need hide when switch detail card, i'll let figure out how that.
Comments
Post a Comment