Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/390.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 与Ext Js选项卡面板一样,Senca touch选项卡面板中的可关闭面板_Javascript_Sencha Touch_Sencha Touch 2 - Fatal编程技术网

Javascript 与Ext Js选项卡面板一样,Senca touch选项卡面板中的可关闭面板

Javascript 与Ext Js选项卡面板一样,Senca touch选项卡面板中的可关闭面板,javascript,sencha-touch,sencha-touch-2,Javascript,Sencha Touch,Sencha Touch 2,我们需要在Sencha Touch中创建一个选项卡面板,并选择关闭选项卡面板的各个面板。在Sencha Touch中,我们可以使用以下代码创建选项卡面板: Ext.create('Ext.TabPanel', { fullscreen: true, tabBarPosition: 'bottom', defaults: { styleHtmlContent: true }, items: [ {

我们需要在Sencha Touch中创建一个选项卡面板,并选择关闭选项卡面板的各个面板。在Sencha Touch中,我们可以使用以下代码创建选项卡面板:

Ext.create('Ext.TabPanel', {
    fullscreen: true,
    tabBarPosition: 'bottom',

    defaults: {
        styleHtmlContent: true
    },

    items: [
        {
            title: 'Panel 1',
            html: 'Panel One'
        },
        {
            title: 'Panel 2',
            html: 'Panel Two'
        }
    ]
});
在Ext js中,我们可以使用属性
closable:true
创建closable选项卡面板,如下所示:

 Ext.create('Ext.tab.Panel', {
        items: [{
            title: 'Tab 1',
            html: 'A simple tab',
          closable:true
        }, {
            title: 'Tab 2',
            html: 'Another one',
          closable:true

        }],
        renderTo: Ext.getBody()
    });

那么我们如何在sencha touch选项卡面板中实现同样的效果呢?

我知道sencha touch,但从未见过Ext.js closable选项卡。你能描述一下你需要的功能吗?也许会摆弄一把小提琴。它显示第一个面板是可关闭的