无法在ExtJS 4表单面板中加载图像
我有一个表单面板..我试图在其中添加一个图像..图像块出现,但图像未加载..调整图像块的大小效果很好..这是我从html文件调用的代码。。有人能帮我吗无法在ExtJS 4表单面板中加载图像,extjs,extjs4,Extjs,Extjs4,我有一个表单面板..我试图在其中添加一个图像..图像块出现,但图像未加载..调整图像块的大小效果很好..这是我从html文件调用的代码。。有人能帮我吗 Ext.application({ name : 'hello', launch : function() { Ext.create('Ext.form.Panel', { title : 'Create Catalog', defaultType : 'textf
Ext.application({
name : 'hello',
launch : function() {
Ext.create('Ext.form.Panel', {
title : 'Create Catalog',
defaultType : 'textfield',
items : [ {
fieldLabel : 'Name',
name : 'name',
anchor : '100%',
allowBlank : false
},{
xtype : 'imagefield',
fieldLabel : 'Image Here',
src : 'i1.jpg',
width : 50,
height : 25
}
],
renderTo : Ext.getBody()
});
}
});
它现在可以工作了…xtype应该是image
{
xtype: 'image',
fieldLabel: 'Image Here',
src: 'i2.png',
width: 50,
height: 50
}