-<!DOCTYPE html><html><head><title>Sencha Documentation Project</title><link rel="stylesheet" href="../reset.css" type="text/css"><link rel="stylesheet" href="../prettify.css" type="text/css"><link rel="stylesheet" href="../prettify_sa.css" type="text/css"><script type="text/javascript" src="../prettify.js"></script></head><body onload="prettyPrint()"><pre class="prettyprint"><pre><span id='Ext-grid.feature.Summary'>/**
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>The source code</title>
+ <link href="../prettify/prettify.css" type="text/css" rel="stylesheet" />
+ <script type="text/javascript" src="../prettify/prettify.js"></script>
+ <style type="text/css">
+ .highlight { display: block; background-color: #ddd; }
+ </style>
+ <script type="text/javascript">
+ function highlight() {
+ document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
+ }
+ </script>
+</head>
+<body onload="prettyPrint(); highlight();">
+ <pre class="prettyprint lang-js"><span id='Ext-grid-feature-Summary'>/**
</span> * @class Ext.grid.feature.Summary
* @extends Ext.grid.feature.AbstractSummary
*
* 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
* 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' : '');
* }
* }, {
/* End Definitions */
-<span id='Ext-grid.feature.Summary-method-getFragmentTpl'> /**
+<span id='Ext-grid-feature-Summary-method-getFragmentTpl'> /**
</span> * Gets any fragments needed for the template.
* @private
* @return {Object} The fragments
return this.getSummaryFragments();
},
-<span id='Ext-grid.feature.Summary-method-getTableFragments'> /**
+<span id='Ext-grid-feature-Summary-method-getTableFragments'> /**
</span> * Overrides the closeRows method on the template so we can include our own custom
* footer.
* @private
}
},
-<span id='Ext-grid.feature.Summary-method-closeRows'> /**
+<span id='Ext-grid-feature-Summary-method-closeRows'> /**
</span> * Provide our own custom footer for the grid.
* @private
* @return {String} The custom footer
return '</tpl>{[this.printSummaryRow()]}';
},
-<span id='Ext-grid.feature.Summary-method-getPrintData'> /**
+<span id='Ext-grid-feature-Summary-method-getPrintData'> /**
</span> * Gets the data for printing a template row
* @private
* @param {Number} index The index in the template
return data;
},
-<span id='Ext-grid.feature.Summary-method-generateSummaryData'> /**
+<span id='Ext-grid-feature-Summary-method-generateSummaryData'> /**
</span> * Generates all of the summary data to be used when processing the template
* @private
* @return {Object} The summary data
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;
}
-});</pre></pre></body></html>
\ No newline at end of file
+});</pre>
+</body>
+</html>