Другое решение (test.html):
<html>
<head>
<link rel="stylesheet" type="text/css" href="../ext-3.4.0/resources/css/ext-all.css">
<script type="text/javascript" src="../ext-3.4.0/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="../ext-3.4.0/ext-all.js"></script>
<script type="text/javascript">
Ext.onReady(function() {
Ext.create({
xtype: 'window',
title: 'Image',
width: 400,
height: 300,
layout: 'vbox',
items: [{
xtype: 'box',
width: 16,
height: 16,
autoEl: {
tag: 'img',
src: '../img/remove-icon.png'
}
}]
}).show();
});
</script>
<title>'TEST'</title>
</head>
<body></body>
</html>
Примечания:
Протестировано с ExtJS 3.4.0.