[英]Unable to load Image in ExtJS 4 form panel
我有一個表單面板..我正在嘗試添加圖像...出現了圖像塊,但是圖像沒有被加載..調整圖像塊的大小可以正常工作..這是我從html文件。有人可以幫助我嗎?
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應該是圖像。
{
xtype: 'image',
fieldLabel: 'Image Here',
src: 'i2.png',
width: 50,
height: 50
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.