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

Version Path
knitkit-2.0.5 public/javascripts/erp_app/desktop/applications/knitkit/image_assets_data_view.js
knitkit-2.0.4 public/javascripts/erp_app/desktop/applications/knitkit/image_assets_data_view.js
knitkit-2.0.3 public/javascripts/erp_app/desktop/applications/knitkit/image_assets_data_view.js
knitkit-2.0.2 public/javascripts/erp_app/desktop/applications/knitkit/image_assets_data_view.js
knitkit-2.0.1 public/javascripts/erp_app/desktop/applications/knitkit/image_assets_data_view.js