简体   繁体   English

如何在Sencha Touch中将“ Ext.Viewport.setActiveItem”设置为NO全屏

[英]How set “Ext.Viewport.setActiveItem” to NO full screen in Sencha Touch

I'm newbie in Sencha and when I use Ext.Viewport.setActiveItem Launches view that I want to link but I do full screen, without the two bars up and down, how to tell me not to display it full screen? 我是Sencha的新手,当我使用Ext.Viewport.setActiveItem启动要链接的视图但我全屏显示时,没有上下两个栏,如何告诉我不要全屏显示? Thank you! 谢谢!

My code: 我的代码:

{
    xtype: 'button',  
    text: 'Show my other view',
    cls:'butview',
        listeners: {
        tap: function(button, e, eOpts) {
             Ext.Viewport.setActiveItem( {xtype:'myotherview'} );
             // Ext.Viewport.setActiveItem( 'app.views.myotherview' );
        }
    }
}

Image (I can not post images because my reputation is still low, the share from google drive) 图片(我的信誉仍然很低,我无法发布图片,来自Google驱动器的份额)

![show] https://googledrive.com/host/0BwIaci1aJaoTbHB0SmxwX0hJalk/full%20screen..JPG ![as should the load][2] https://googledrive.com/host/0BwIaci1aJaoTbHB0SmxwX0hJalk/normal.jpg ![显示] https://googledrive.com/host/0BwIaci1aJaoTbHB0SmxwX0hJalk/full%20screen..JPG ![应加载] [2] https://googledrive.com/host/0BwIaci1aJaoTbHB0SmxwX0hJalk/normal.jpg

Thankss 谢谢

If you want to change content between title bar and buttons bar use http://docs.sencha.com/touch/2.3.2/#!/api/Ext.tab.Panel 如果要在标题栏和按钮栏之间更改内容,请使用http://docs.sencha.com/touch/2.3.2/#!/api/Ext.tab.Panel

Declare all views inside tabpanel. 在tabpanel中声明所有视图。 To switch to another view use 要切换到另一个视图,请使用

/reference to tabpanel component/.setActiveItem(2)

2 is number of view 2是视野数

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM