1. #1
    Sencha User
    Join Date
    May 2011
    Location
    Ukraine, Rivne
    Posts
    247
    Vote Rating
    41
    redraid has a spectacular aura about redraid has a spectacular aura about redraid has a spectacular aura about

      2  

    Default Ext.ux.grid.feature.RowSpacer - add space between rows

    Ext.ux.grid.feature.RowSpacer - add space between rows


    PHP Code:
    Ext.define('Ext.ux.grid.feature.RowSpacer', {
        
    extend'Ext.grid.feature.Feature',
        
    alias'feature.rowspacer',
        
    height5,
        
    spacerRowTrClsExt.baseCSSPrefix 'grid-rowspacer-tr',
        
    spacerRowTdClsExt.baseCSSPrefix 'grid-rowspacer-td',

        
    getSpacerRow: function(values) {
            return [
                
    '<tpl if="xindex != xcount">',
                
    '<tr class="' this.spacerRowTrCls ' {spacerRowCls}">',
                    
    '<td class="' this.spacerRowTdCls '" colspan="{spacerRowColspan}" style="height: {spacerHeight}px;"></td>',
                
    '</tr>',
                
    '</tpl>'
            
    ].join('');
        },

        
    getMetaRowTplFragments: function() {
            return {
                
    getSpacerRowthis.getSpacerRow,
                
    spacerRowTrClsthis.spacerRowTrCls,
                
    spacerRowTdClsthis.spacerRowTdCls
            
    };
        },

        
    mutateMetaRowTpl: function(metaRowTpl) {
            
    metaRowTpl.push('{[this.getSpacerRow(values)]}');
        },

        
    getAdditionalData: function(dataidxrecordorig) {
            var 
    headerCt this.view.headerCt,
                
    colspan  headerCt.getColumnCount();

            return {
                
    spacerHeightthis.height,
                
    spacerRowClsthis.spacerRowCls,
                
    spacerRowColspancolspan
            
    };
        }
    }); 
    Last edited by redraid; 10 Jul 2012 at 9:13 AM. Reason: removed debug code

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,643
    Vote Rating
    401
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Thank you for the code.

    Scott

  3. #3
    Ext JS Premium Member cmeans's Avatar
    Join Date
    Jun 2010
    Location
    Chicago, IL USA
    Posts
    99
    Vote Rating
    4
    cmeans is on a distinguished road

      0  

    Default


    Thanks, exactly what I needed.

    -Chris

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar