partkeepr

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

MetaPartRowExpander.js (546B)


      1 Ext.define("PartKeepr.Components.ProjectReport.MetaPartRowExpander", {
      2     extend: "Ext.grid.plugin.RowWidget",
      3 
      4     ptype: 'metapartrowexpander',
      5 
      6     getHeaderConfig: function() {
      7         var config = this.callParent(arguments);
      8 
      9         config.renderer = function (v,p,rec) {
     10             if (rec.get("metaPart")) {
     11                 return '<div class="' + Ext.baseCSSPrefix + 'grid-row-expander" role="presentation" tabIndex="0"></div>';
     12             } else {
     13                 return '';
     14             }
     15         };
     16 
     17         return config;
     18     }
     19 });