JavaScript
Run Code
Open in Fiddle
Ext.define('MyImage.view.MyImg', { extend: 'Ext.Img', height: 201, renderTo: 'Ext.getBody(),', width: 400, src: 'http://www.sencha.com/img/20110215-feat-html5.png', title: 'Image Tooltip', initComponent: function() { var me = this; me.callParent(arguments); } }); // @require @packageOverrides Ext.Loader.setConfig({ enabled: true }); Ext.application({ views: [ 'MyImg' ], name: 'MyImage', launch: function() { Ext.create('MyImage.view.MyImg', {renderTo: Ext.getBody()}); } });