【问题标题】:Sencha Touch Accordion items blankSencha Touch Accordion 项目空白
【发布时间】:2012-03-06 07:18:06
【问题描述】:

我正在使用来自 Mitchell Simoens git link 的 Sencha Touch 1.0.1 手风琴布局: https://github.com/mitchellsimoens/Ext.layout.AccordionLayout

我想在其中一个手风琴项目中放置一个表单面板。但是,尽管 formPanel 中的 html 显示,但当我将项目添加到面板时,它会变为空白。

请帮忙!!

我的代码:

var formp = new Ext.form.FormPanel({
scroll : "vertical",
title : "List Test",
//    scrollable : true,
items : [
    {
        xtype : 'textfield',
        label : 'hello',
        id : 'hello',
        name : 'hello'
    }
  ]
});
 var panel = new Ext.Panel({
        fullscreen : true,
        scroll     : "vertical",
        layout     : {
            type :  "accordion"
        },
                    minHeight : 300,
        items: [
            { xtype : "panel", title : "One Title",   html : "One"   },
            list,
            { xtype : "panel", title : "Three Title", html : "Three" },
            { xtype : "panel", title : "Four Title",  html : "Four"  },
            { xtype : "panel", title : "Five Title",  html : "Five"  },
            { xtype : "panel", title : "Six Title",   html : "Six"   }
        ]
    });

【问题讨论】:

    标签: layout sencha-touch accordion items


    【解决方案1】:

    我已更新此库以解决我在使用此布局时遇到的一些问题,因此您可以检查这是否解决了您的问题

    http://pastebin.com/fGRMBMfn

    更新:

    new Ext.Application({
        launch : function() {
            var panel = new Ext.Panel({
                    fullscreen : true,
                    scroll     : "vertical",
                    layout     : {
                        type :  "accordion"
                    },
                    minHeight : 300,
                    renderTo : Ext.getBody(),
                    items: [
                        { xtype : "panel", title : "One Title",   html : "One"   },
                        { xtype : "panel", title : "Three Title", html : "Three" },
                        { xtype : "panel", title : "Four Title",  html : "Four"  },
                        { xtype : "panel", title : "Five Title",  html : "Five"  },
                        { xtype : "panel", title : "Six Title",   html : "Six"   }
                    ]
                });
        }
    });
    

    【讨论】:

    • 对不起,我现在没有,但我只有更新的库,我已将其存储以供将来参考:),如果它不起作用,您可以尝试这个库,然后我可以尝试找出问题
    • 我已经使用我的库和上面的代码,它可以正确显示项目,你还有问题吗?
    • 是的..我在sencha 1.1中使用这个github.com/mitchellsimoens/Ext.layout.AccordionLayout最新的..但它仍然有问题
    • 不,你应该使用这个库pastebin.com/fGRMBMfn,它已被我修改以解决一些问题
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多