ExtJS - 将在视口上创建的面板置于前面

ExtJS - Bring to front created panel on Viewport

抱歉这个新手问题,但我快崩溃了。

使用现代工具包,我直接在视口中创建了两个面板:

var clients = Ext.create('MyApp.view.clientsList', {fullscreen: true});
var providers = Ext.create('MyApp.view.providersList', {fullscreen: true});

如何从一个面板切换到另一个面板,因为目前我只能看到最后创建的面板(提供商)?

我试过:

也许使用 z-index? 非常感谢!!!

只需将客户端和提供程序组件移动到 Ext.Carousel。像这样:

var carousel = Ext.create('Ext.Carousel', {
    fullscreen: true,
    items: [
        clients,
        providers
    ]
});

Fiddle sample