extjs - Button on TitleBar simply doesn't display Sencha Touch -
here code.
ext.application({ name: 'sencha', launch: function() { ext.create("ext.tabpanel", { fullscreen: true, tabbarposition: 'bottom', items: [ { xtype: 'titlebar', docked: 'top', title: 'myapp', itmes: [{ xtype: 'button', text: 'add', align: 'right' }] }] }); } });
someone said use navigation view, , saw examples using ext.viewport.add(), don't either of them. wonder possible add buttons on titlebar , bind events onto buttons in configuration directly?
update:
i found approach--> using ext.viewport.add() , works in desktop browers, doesn't work when generated cordova project and/or deployed onto devices (both android , windows phone 8), titlebar doesn't display @ all.
it makes me more urgent find way how write titlebar, button , events configuration.
it's typo : itmes
should items :)
Comments
Post a Comment