3 This file is part of Ext JS 4
5 Copyright (c) 2011 Sencha Inc
7 Contact: http://www.sencha.com/contact
9 GNU General Public License Usage
10 This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html.
12 If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact.
16 * @class Ext.chooser.InfoPanel
17 * @extends Ext.panel.Panel
20 * This panel subclass just displays information about an image. We have a simple template set via the tpl property,
21 * and a single function (loadRecord) which updates the contents with information about another image.
23 Ext.define('Ext.chooser.InfoPanel', {
24 extend: 'Ext.panel.Panel',
25 alias : 'widget.infopanel',
26 id: 'img-detail-panel',
32 '<div class="details">',
34 (!Ext.isIE6? '<img src="icons/{thumb}" />' :
35 '<div style="width:74px;height:74px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'icons/{thumb}\')"></div>'),
36 '<div class="details-info">',
37 '<b>Example Name:</b>',
38 '<span>{name}</span>',
39 '<b>Example URL:</b>',
40 '<span><a href="http://dev.sencha.com/deploy/touch/examples/{url}" target="_blank">{url}.html</a></span>',
42 '<span>{type}</span>',
49 * Loads a given image record into the panel. Animates the newly-updated panel in from the left over 250ms.
51 loadRecord: function(image) {
53 this.tpl.overwrite(this.body, image.data);
54 this.body.slideIn('l', {