Sencha touch 如何定义sencha touch中的内部字段
我想在textarea中创建一个textarea字段,但它只显示一个textarea字段,而不显示内部textarea字段。Sencha touch 如何定义sencha touch中的内部字段,sencha-touch,sencha-touch-2,Sencha Touch,Sencha Touch 2,我想在textarea中创建一个textarea字段,但它只显示一个textarea字段,而不显示内部textarea字段。项配置在这里不起作用,因为它对Ext.field不可用,请尝试使用组件配置,类似这样: items: [ { xtype: 'textareafield', label: 'references', items: [{ xtype:'textareafi
项
配置在这里不起作用,因为它对Ext.field
不可用,请尝试使用组件
配置,类似这样:
items: [
{
xtype: 'textareafield',
label: 'references',
items: [{
xtype:'textareafield',
}
]
}]
p/S:Behine the scene,Sencha Touch 2在默认情况下将
组件
配置设置为{xtype:“textareainput”}
,因此使用此方法,您可以插入任何您想要的内容,例如按钮等。现在我想在内部字段中添加边框,这是怎么可能的?这只是CSS定制的问题
{
xtype: 'textfield',
component: {
xtype: 'container',
layout: 'vbox',
items: [
{
xtype: 'textareainput',
flex: 3,
},
{
xtype: 'textareafield',
flex: 1,
}
]},
},