Upgrade to ExtJS 4.0.0 - Released 04/26/2011
[extjs.git] / src / util / Grouper.js
1 /**
2  * @class Ext.util.Grouper
3  * @extends Ext.util.Sorter
4  */
5  
6 Ext.define('Ext.util.Grouper', {
7
8     /* Begin Definitions */
9
10     extend: 'Ext.util.Sorter',
11
12     /* End Definitions */
13
14     /**
15      * Function description
16      * @param {Ext.data.Model} instance The Model instance
17      * @return {String} The group string for this model
18      */
19     getGroupString: function(instance) {
20         return instance.get(this.property);
21     }
22 });