我使用来自 Mitchell Simoens git 链接的 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" }
]
});