-<!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-util.Sortable'>/**
+<!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-util-Sortable'>/**
</span> * @class Ext.util.Sortable
A mixin which allows a data component to be sorted. This is used by e.g. {@link Ext.data.Store} and {@link Ext.data.TreeStore}.
* @docauthor Tommy Maintz <tommy@sencha.com>
*/
Ext.define("Ext.util.Sortable", {
-<span id='Ext-util.Sortable-property-isSortable'> /**
+<span id='Ext-util-Sortable-property-isSortable'> /**
</span> * @property isSortable
* @type Boolean
* Flag denoting that this object is sortable. Always true.
*/
isSortable: true,
-<span id='Ext-util.Sortable-property-defaultSortDirection'> /**
+<span id='Ext-util-Sortable-property-defaultSortDirection'> /**
</span> * The default sort direction to use if one is not specified (defaults to "ASC")
* @property defaultSortDirection
* @type String
'Ext.util.Sorter'
],
-<span id='Ext-util.Sortable-property-sortRoot'> /**
-</span> * The property in each item that contains the data to sort. (defaults to null)
+<span id='Ext-util-Sortable-property-'> /**
+</span> * The property in each item that contains the data to sort.
* @type String
*/
- sortRoot: null,
-<span id='Ext-util.Sortable-method-initSortable'> /**
+<span id='Ext-util-Sortable-method-initSortable'> /**
</span> * Performs initialization of this mixin. Component classes using this mixin should call this method
* during their own initialization.
*/
var me = this,
sorters = me.sorters;
-<span id='Ext-util.Sortable-property-sorters'> /**
+<span id='Ext-util-Sortable-property-sorters'> /**
</span> * The collection of {@link Ext.util.Sorter Sorters} currently applied to this Store
* @property sorters
* @type Ext.util.MixedCollection
}
},
-<span id='Ext-util.Sortable-method-sort'> /**
+<span id='Ext-util-Sortable-method-sort'> /**
</span> * <p>Sorts the data in the Store by one or more of its properties. Example usage:</p>
<pre><code>
//sort by a single field
onBeforeSort: Ext.emptyFn,
-<span id='Ext-util.Sortable-method-decodeSorters'> /**
+<span id='Ext-util-Sortable-method-decodeSorters'> /**
</span> * @private
* Normalizes an array of sorter objects, ensuring that they are all Ext.util.Sorter instances
* @param {Array} sorters The sorters array
getSorters: function() {
return this.sorters.items;
- },
-
-<span id='Ext-util.Sortable-method-getSortState'> /**
-</span> * Returns an object describing the current sort state of this Store.
- * @return {Object} The sort state of the Store. An object with two properties:<ul>
- * <li><b>field</b> : String<p class="sub-desc">The name of the field by which the Records are sorted.</p></li>
- * <li><b>direction</b> : String<p class="sub-desc">The sort order, 'ASC' or 'DESC' (case-sensitive).</p></li>
- * </ul>
- * See <tt>{@link #sortInfo}</tt> for additional details.
- */
- getSortState : function() {
- return this.sortInfo;
}
-});</pre></pre></body></html>
\ No newline at end of file
+});</pre>
+</body>
+</html>