X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..6746dc89c47ed01b165cc1152533605f97eb8e8d:/docs/source/AbstractSummary.html diff --git a/docs/source/AbstractSummary.html b/docs/source/AbstractSummary.html index 74be273f..f0e9dc13 100644 --- a/docs/source/AbstractSummary.html +++ b/docs/source/AbstractSummary.html @@ -1,9 +1,25 @@ -Sencha Documentation Project
/**
- * A small abstract class that contains the shared behaviour for any summary
- * calculations to be used in the grid.
- * @class Ext.grid.feature.AbstractSummary
+
+
+
+  
+  The source code
+  
+  
+  
+  
+
+
+  
/**
+ * @class Ext.grid.feature.AbstractSummary
  * @extends Ext.grid.feature.Feature
- * @ignore
+ * A small abstract class that contains the shared behaviour for any summary
+ * calculations to be used in the grid.
  */
 Ext.define('Ext.grid.feature.AbstractSummary', {
     
@@ -15,7 +31,7 @@ Ext.define('Ext.grid.feature.AbstractSummary', {
    
     /* End Definitions */
    
-   /**
+   /**
     * @cfg {Boolean} showSummaryRow True to show the summary row. Defaults to <tt>true</tt>.
     */
     showSummaryRow: true,
@@ -23,7 +39,7 @@ Ext.define('Ext.grid.feature.AbstractSummary', {
     // @private
     nestedIdRe: /\{\{id\}([\w\-]*)\}/g,
     
-    /**
+    /**
      * Toggle whether or not to show the summary row.
      * @param {Boolan} visible True to show the summary row
      */
@@ -31,7 +47,7 @@ Ext.define('Ext.grid.feature.AbstractSummary', {
         this.showSummaryRow = !!visible;
     },
     
-    /**
+    /**
      * Gets any fragments to be used in the tpl
      * @private
      * @return {Object} The fragments
@@ -46,7 +62,7 @@ Ext.define('Ext.grid.feature.AbstractSummary', {
         return fragments;
     },
     
-    /**
+    /**
      * Prints a summary row
      * @private
      * @param {Object} index The index in the template
@@ -69,24 +85,29 @@ Ext.define('Ext.grid.feature.AbstractSummary', {
         });
     },
     
-    /**
+    /**
      * Gets the value for the column from the attached data.
      * @param {Ext.grid.column.Column} column The header
      * @param {Object} data The current data
      * @return {String} The value to be rendered
      */
-    getColumnValue: function(column, data){
-        var comp = Ext.getCmp(column.id),
-            value = data[column.dataIndex],
-            renderer = comp.summaryRenderer || comp.renderer;
-            
+    getColumnValue: function(column, summaryData){
+        var comp     = Ext.getCmp(column.id),
+            value    = summaryData[column.id],
+            renderer = comp.summaryRenderer;
+
         if (renderer) {
-            value = renderer.call(comp.scope || this, value, data, column.dataIndex);
+            value = renderer.call(
+                comp.scope || this,
+                value,
+                summaryData,
+                column.dataIndex
+            );
         }
         return value;
     },
     
-    /**
+    /**
      * Get the summary data for a field.
      * @private
      * @param {Ext.data.Store} store The store to get the data from
@@ -121,4 +142,6 @@ Ext.define('Ext.grid.feature.AbstractSummary', {
     }
     
 });
-
\ No newline at end of file +
+ +