X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..6746dc89c47ed01b165cc1152533605f97eb8e8d:/docs/source/Summary.html diff --git a/docs/source/Summary.html b/docs/source/Summary.html index 66623c39..a3bf169a 100644 --- a/docs/source/Summary.html +++ b/docs/source/Summary.html @@ -1,4 +1,21 @@ -Sencha Documentation Project
/**
+
+
+
+  
+  The source code
+  
+  
+  
+  
+
+
+  
/**
  * @class Ext.grid.feature.Summary
  * @extends Ext.grid.feature.AbstractSummary
  * 
@@ -27,7 +44,7 @@
  * not specified the default calculated value is shown. The summaryRenderer is called with:
  *
  *  - value {Object} - The calculated value.
- *  - data {Object} - Contains all raw summary values for the row.
+ *  - summaryData {Object} - Contains all raw summary values for the row.
  *  - field {String} - The name of the field we are calculating
  * 
  * ## Example Usage
@@ -67,7 +84,7 @@
  *             dataIndex: 'student',
  *             text: 'Name',
  *             summaryType: 'count',
- *             summaryRenderer: function(value){
+ *             summaryRenderer: function(value, summaryData, dataIndex) {
  *                 return Ext.String.format('{0} student{1}', value, value !== 1 ? 's' : ''); 
  *             }
  *         }, {
@@ -87,7 +104,7 @@ Ext.define('Ext.grid.feature.Summary', {
     
     /* End Definitions */
     
-    /**
+    /**
      * Gets any fragments needed for the template.
      * @private
      * @return {Object} The fragments
@@ -98,7 +115,7 @@ Ext.define('Ext.grid.feature.Summary', {
         return this.getSummaryFragments();
     },
     
-    /**
+    /**
      * Overrides the closeRows method on the template so we can include our own custom
      * footer.
      * @private
@@ -112,7 +129,7 @@ Ext.define('Ext.grid.feature.Summary', {
         }
     },
     
-    /**
+    /**
      * Provide our own custom footer for the grid.
      * @private
      * @return {String} The custom footer
@@ -121,7 +138,7 @@ Ext.define('Ext.grid.feature.Summary', {
         return '</tpl>{[this.printSummaryRow()]}';
     },
     
-    /**
+    /**
      * Gets the data for printing a template row
      * @private
      * @param {Number} index The index in the template
@@ -144,7 +161,7 @@ Ext.define('Ext.grid.feature.Summary', {
         return data;
     },
     
-    /**
+    /**
      * Generates all of the summary data to be used when processing the template
      * @private
      * @return {Object} The summary data
@@ -162,8 +179,10 @@ Ext.define('Ext.grid.feature.Summary', {
             
         for (i = 0, length = columns.length; i < length; ++i) {
             comp = Ext.getCmp(columns[i].id);
-            data[comp.dataIndex] = me.getSummary(store, comp.summaryType, comp.dataIndex, false);
+            data[comp.id] = me.getSummary(store, comp.summaryType, comp.dataIndex, false);
         }
         return data;
     }
-});
\ No newline at end of file +});
+ +