Sha256: 3433d63744cc3e23880bc54322863cb7d543872899db9387cd13383c4f34dc80
Contents?: true
Size: 872 Bytes
Versions: 5
Compression:
Stored size: 872 Bytes
Contents
Ext.define("Compass.ErpApp.Desktop.Applications.Knitkit.ImageAssetsDataView",{ extend:"Ext.view.View", alias:'widget.knitkit_imageassetsdataview', constructor : function(config) { config = Ext.apply({ autoDestroy:true, style:'overflow:auto', itemSelector: 'div.thumb-wrap', store: Ext.create('Ext.data.Store', { proxy: { type: 'ajax', url: config['url'], reader: { type: 'json', root: 'images' } }, fields:['name', 'url','shortName'] }), tpl: new Ext.XTemplate( '<tpl for=".">', '<div class="thumb-wrap" id="{name}">', '<div class="thumb"><img src="{url}" alt="{name}" class="thumb-img"></div>', '<span>{shortName}</span></div>', '</tpl>') }, config); this.callParent([config]); } });
Version data entries
5 entries across 5 versions & 1 rubygems