Hybrid View

  1. #1
    Sencha User
    Join Date
    May 2011
    Location
    Ukraine, Rivne
    Posts
    247
    Vote Rating
    42
    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,927
    Vote Rating
    443
    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
    112
    Vote Rating
    7
    cmeans is on a distinguished road

      0  

    Default


    Thanks, exactly what I needed.

    -Chris

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi