X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..refs/heads/master:/docs/source/Summary.html diff --git a/docs/source/Summary.html b/docs/source/Summary.html index 66623c39..17e97334 100644 --- a/docs/source/Summary.html +++ b/docs/source/Summary.html @@ -1,4 +1,21 @@ -
/**
+
+
+
+
+ The source code
+
+
+
+
+
+
+ /**
* @class Ext.grid.feature.Summary
* @extends Ext.grid.feature.AbstractSummary
*
@@ -27,11 +44,12 @@
* 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
*
+ * @example
* Ext.define('TestResult', {
* extend: 'Ext.data.Model',
* fields: ['student', {
@@ -67,7 +85,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 +105,7 @@ Ext.define('Ext.grid.feature.Summary', {
/* End Definitions */
- /**
+ /**
* Gets any fragments needed for the template.
* @private
* @return {Object} The fragments
@@ -98,7 +116,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 +130,7 @@ Ext.define('Ext.grid.feature.Summary', {
}
},
- /**
+ /**
* Provide our own custom footer for the grid.
* @private
* @return {String} The custom footer
@@ -121,7 +139,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 +162,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 +180,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
+});
+
+