2 * @class Ext.chooser.IconBrowser
3 * @extends Ext.view.View
6 * This is a really basic subclass of Ext.view.View. All we're really doing here is providing the template that dataview
7 * should use (the tpl property below), and a Store to get the data from. In this case we're loading data from a JSON
10 Ext.define('Ext.chooser.IconBrowser', {
11 extend: 'Ext.view.View',
12 alias: 'widget.iconbrowser',
14 uses: 'Ext.data.Store',
17 overItemCls: 'x-view-over',
18 itemSelector: 'div.thumb-wrap',
20 // '<div class="details">',
22 '<div class="thumb-wrap">',
23 '<div class="thumb">',
24 (!Ext.isIE6? '<img src="icons/{thumb}" />' :
25 '<div style="width:74px;height:74px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'icons/{thumb}\')"></div>'),
27 '<span>{name}</span>',
33 initComponent: function() {
34 this.store = Ext.create('Ext.data.Store', {
36 fields: ['name', 'thumb', 'url', 'type'],
47 this.callParent(arguments);