partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

DistributorGrid.js (850B)


      1 Ext.define('PartKeepr.DistributorGrid', {
      2     extend: 'PartKeepr.EditorGrid',
      3     alias: 'widget.DistributorGrid',
      4     columns: [
      5         {
      6             header: i18n("Distributor"),
      7             dataIndex: 'name',
      8             flex: 1
      9         },
     10         {
     11             header: i18n("Pricing"),
     12             dataIndex: 'enabledForReports',
     13             width: 80,
     14             renderers: [{
     15                 rtype: 'icon',
     16                 rendererConfig: {
     17                     iconCls: 'web-icon fugue-icon money-bag-dollar',
     18                     title: i18n("Used for price calculations")
     19                 }
     20             }]
     21         }
     22     ],
     23     addButtonText: i18n("Add Distributor"),
     24     addButtonIconCls: 'web-icon lorry_add',
     25     deleteButtonText: i18n("Delete Distributor"),
     26     deleteButtonIconCls: 'web-icon lorry_delete',
     27     automaticPageSize: true
     28 });