2 * @class Ext.chooser.InfoPanel
3 * @extends Ext.panel.Panel
6 * This panel subclass just displays information about an image. We have a simple template set via the tpl property,
7 * and a single function (loadRecord) which updates the contents with information about another image.
9 Ext.define('Ext.chooser.InfoPanel', {
10 extend: 'Ext.panel.Panel',
11 alias : 'widget.infopanel',
12 id: 'img-detail-panel',
18 '<div class="details">',
20 (!Ext.isIE6? '<img src="icons/{thumb}" />' :
21 '<div style="width:74px;height:74px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'icons/{thumb}\')"></div>'),
22 '<div class="details-info">',
23 '<b>Example Name:</b>',
24 '<span>{name}</span>',
25 '<b>Example URL:</b>',
26 '<span><a href="http://dev.sencha.com/deploy/touch/examples/{url}" target="_blank">{url}.html</a></span>',
28 '<span>{type}</span>',
35 * Loads a given image record into the panel. Animates the newly-updated panel in from the left over 250ms.
37 loadRecord: function(image) {
39 this.tpl.overwrite(this.body, image.data);
40 this.body.slideIn('l', {