items: [
{
xtype: 'textareafield',
label: 'references',
items: [{
xtype:'textareafield',
}
]
}]我想在一个文本区域内创建一个文本区域字段,但是它只显示一个文本区域,而不显示内部的文本区域。
发布于 2012-04-13 12:31:17
items配置在这里不起作用,因为它对Ext.field不可用,请尝试component配置,如下所示:
{
xtype: 'textfield',
component: {
xtype: 'container',
layout: 'vbox',
items: [
{
xtype: 'textareainput',
flex: 3,
},
{
xtype: 'textareafield',
flex: 1,
}
]},
},P/S:在场景中,Sencha Touch2默认将component配置设置为{xtype: "textareainput"},因此使用此方法,您可以插入任何您想要的内容,例如按钮等。
https://stackoverflow.com/questions/10135193
复制相似问题