4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <title>The source code</title>
6 <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
7 <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
8 <style type="text/css">
9 .highlight { display: block; background-color: #ddd; }
11 <script type="text/javascript">
12 function highlight() {
13 document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
17 <body onload="prettyPrint(); highlight();">
18 <pre class="prettyprint lang-js"><span id='Ext-util-Grouper'>/**
19 </span> * @class Ext.util.Grouper
20 * @extends Ext.util.Sorter
22 Represents a single grouper that can be applied to a Store. The grouper works
23 in the same fashion as the {@link Ext.util.Sorter}.
28 Ext.define('Ext.util.Grouper', {
30 /* Begin Definitions */
32 extend: 'Ext.util.Sorter',
36 <span id='Ext-util-Grouper-method-getGroupString'> /**
37 </span> * Returns the value for grouping to be used.
38 * @param {Ext.data.Model} instance The Model instance
39 * @return {String} The group string for this model
41 getGroupString: function(instance) {
42 return instance.get(this.property);