X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/src/util/Grouper.js diff --git a/src/util/Grouper.js b/src/util/Grouper.js new file mode 100644 index 00000000..d8463006 --- /dev/null +++ b/src/util/Grouper.js @@ -0,0 +1,22 @@ +/** + * @class Ext.util.Grouper + * @extends Ext.util.Sorter + */ + +Ext.define('Ext.util.Grouper', { + + /* Begin Definitions */ + + extend: 'Ext.util.Sorter', + + /* End Definitions */ + + /** + * Function description + * @param {Ext.data.Model} instance The Model instance + * @return {String} The group string for this model + */ + getGroupString: function(instance) { + return instance.get(this.property); + } +}); \ No newline at end of file