【发布时间】:2012-05-11 13:49:11
【问题描述】:
我正在使用 sencha touch 来制作 form.fieldset。在我的模型中,我有一个图像字段,我该如何显示模型的当前图像?我的 form.fieldset 看起来像:
/**
* This is used by the NestedList example to allow editing of an item in the Store
*/
Ext.define('ParkingSencha.view.EditorPanel', {
extend: 'Ext.form.Panel',
requires: ['Ext.form.FieldSet'],
id: 'editorPanel',
config: {
modal: true,
hideOnMaskTap: false,
centered: true,
width: 500,
scrollable: false,
items: [{
xtype: 'fieldset',
items: [
{
xtype: 'textfield',
name: 'keyword',
label: 'Mots clés'
},
{
xtype: 'textfield',
name: 'title',
label: 'Titre'
},
{
xtype: 'textfield',
name: 'image',
label: 'image'
}
]
}]
}]
}
});
【问题讨论】:
-
您希望将图像加载到第三个文本字段区域吗?
-
是的,我想将它加载到第三个文本字段中。我的图像存储在我的服务器上。
标签: sencha-touch extjs4 extjs