extjs - sencha touch How to make navigation like Touch-Theming example by sencha touch -
i creating app in have create popup sencha touch theming expample select navigation items.
i tried see code on github hint don't know missing hare code header bar , list button.
ext.define('ov_app.view.headerbar', { xtype : 'headerbar', extend:'ext.toolbar', config: { // xtype : 'toolbar', ui: 'plain', docked: 'top', cls: 'menubar', border:0, defaults:{ border: 0, }, items: [ { iconcls: 'list', iconmask: true, ui: 'plain', action: 'showmoreoption', },{ xtype: 'spacer' },{ xtype: 'container', html: '<img src="resources/images/logo.png">' },{ xtype: 'spacer' },{ iconcls: 'home', iconmask: true, id: 'homebtn', ui: 'plain', action: 'push-view' } ] } }); `
and code controller main.js handel tab action on list button.
ext.define('ov_app.controller.maincontroller', { extend: 'ext.app.controller', config:{ control: { 'button[action=push-view]': { tap: 'pushviewfunction' }, 'button[action=showmoreoption]':{ tap: 'togglmenu' }, }, }, pushviewfunction: function() { ov_app.container.setactiveitem(0); }, togglmenu: function(){ console.log("hello"); } togglmenu: function(button) { this.getstylebubble().showby(button) }, }); `
when try click on list button on top error see in console
uncaught typeerror: object [object object] has no method 'getstylebubble'
and didn't see definition 'getstylebubble' function in of file in model, views, controller, store directories. defined in touch directories files or missing something.
there no getstylebubble() function deceleration in controllers file not in file if download whole source code zip folder think have not uploaded complete source code. found solution answer. have create new panel , make toggle click of list button this.
togglmenu: function(button){ if(!this.overlay) { this.overlay = ext.viewport.add({ xtype: 'panel', modal: true, hideonmasktap: true, showanimation: { type: 'popin', duration: 250, easing: 'ease-out' }, hideanimation: { type: 'popout', duration: 250, easing: 'ease-out' }, height: 200, width: 200, //centered: true, stylehtmlcontent: true, html: '<p>hello dummy content in pop box </p>', scrollable: true }); } this.overlay.showby(button); `

Comments
Post a Comment