extjs - Button to another Page with Sencha Touch -


i created little homepage sencha touch. want use buttons link site/page. how can that? don't want use standard tab bar.

ext.define('rma-app.view.main', {     extend: 'ext.container',     xtype: 'main',     requires: [         'ext.titlebar'     ],     config: {         items: [             {                 docked: 'top',                 xtype: 'titlebar',                 title: 'rma-app'             },             {                 xtype: 'button',                 text: 'event anlegen',                 ui: 'normal',                 iconcls: 'add',                 iconmask: 'true',                 iconalign: 'top',                 margin: '5 5 5 5'             },             {                 xtype: 'button',                 text: 'events anzeigen',                 ui: 'normal',                 iconcls: 'list',                 iconmask: 'true',                 iconalign: 'top',                 margin: '5 5 5 5'             }         ]     } }); 

you can navigate view handler

{     xtype: 'button',     text: 'events anzeigen',     handler: function() {          var somerootcontainer = ext.componentquery.query("#somerootcontainer");          somerootcontainer.removeall();          somerootcontainer.add(ext.create(yourtargetview));     } } 

Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -