X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..3789b528d8dd8aad4558e38e22d775bcab1cbd36:/docs/output/Ext.util.Sortable.js diff --git a/docs/output/Ext.util.Sortable.js b/docs/output/Ext.util.Sortable.js new file mode 100644 index 00000000..6af919c0 --- /dev/null +++ b/docs/output/Ext.util.Sortable.js @@ -0,0 +1,166 @@ +Ext.data.JsonP.Ext_util_Sortable({ + "tagname": "class", + "name": "Ext.util.Sortable", + "doc": "

A mixin which allows a data component to be sorted. This is used by e.g. Ext.data.Store and Ext.data.TreeStore.

\n\n

*NOTE**: This mixin is mainly for internal library use and most users should not need to use it directly. It\nis more likely you will want to use one of the component classes that import this mixin, such as\nExt.data.Store or Ext.data.TreeStore.

\n", + "extends": null, + "mixins": [ + + ], + "alternateClassNames": [ + + ], + "xtype": null, + "author": null, + "docauthor": "Tommy Maintz ", + "singleton": false, + "private": false, + "cfg": [ + + ], + "method": [ + { + "tagname": "method", + "name": "initSortable", + "member": "Ext.util.Sortable", + "doc": "

Performs initialization of this mixin. Component classes using this mixin should call this method\nduring their own initialization.

\n", + "params": [ + + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Sortable.js", + "linenr": 37, + "html_filename": "Sortable.html", + "href": "Sortable.html#Ext-util-Sortable-method-initSortable", + "shortDoc": "Performs initialization of this mixin. Component classes using this mixin should call this method\nduring their own in..." + }, + { + "tagname": "method", + "name": "sort", + "member": "Ext.util.Sortable", + "doc": "

Sorts the data in the Store by one or more of its properties. Example usage:

\n\n\n
//sort by a single field\nmyStore.sort('myField', 'DESC');\n\n//sorting by multiple fields\nmyStore.sort([\n    {\n        property : 'age',\n        direction: 'ASC'\n    },\n    {\n        property : 'name',\n        direction: 'DESC'\n    }\n]);\n
\n\n\n

Internally, Store converts the passed arguments into an array of Ext.util.Sorter instances, and delegates the actual\nsorting to its internal Ext.util.MixedCollection.

\n\n\n

When passing a single string argument to sort, Store maintains a ASC/DESC toggler per field, so this code:

\n\n\n
store.sort('myField');\nstore.sort('myField');\n     
\n\n\n

Is equivalent to this code, because Store handles the toggling automatically:

\n\n\n
store.sort('myField', 'ASC');\nstore.sort('myField', 'DESC');\n
\n\n", + "params": [ + { + "type": "String|Array", + "name": "sorters", + "doc": "

Either a string name of one of the fields in this Store's configured Model,\nor an Array of sorter configurations.

\n", + "optional": false + }, + { + "type": "String", + "name": "direction", + "doc": "

The overall direction to sort the data by. Defaults to \"ASC\".

\n", + "optional": false + }, + { + "type": "Object", + "name": "where", + "doc": "\n", + "optional": false + }, + { + "type": "Object", + "name": "doSort", + "doc": "\n", + "optional": false + } + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Sortable.js", + "linenr": 59, + "html_filename": "Sortable.html", + "href": "Sortable.html#Ext-util-Sortable-method-sort", + "shortDoc": "Sorts the data in the Store by one or more of its properties. Example usage:\n\n\n//sort by a single field\nmyStore.sort(..." + } + ], + "property": [ + { + "tagname": "property", + "name": "defaultSortDirection", + "member": "Ext.util.Sortable", + "type": "String", + "doc": "

The default sort direction to use if one is not specified (defaults to \"ASC\")

\n", + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Sortable.js", + "linenr": 20, + "html_filename": "Sortable.html", + "href": "Sortable.html#Ext-util-Sortable-property-defaultSortDirection" + }, + { + "tagname": "property", + "name": "isSortable", + "member": "Ext.util.Sortable", + "type": "Boolean", + "doc": "

Flag denoting that this object is sortable. Always true.

\n", + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Sortable.js", + "linenr": 13, + "html_filename": "Sortable.html", + "href": "Sortable.html#Ext-util-Sortable-property-isSortable" + }, + { + "tagname": "property", + "name": "sortRoot", + "member": "Ext.util.Sortable", + "type": "String", + "doc": "

The property in each item that contains the data to sort. (defaults to null)

\n", + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Sortable.js", + "linenr": 31, + "html_filename": "Sortable.html", + "href": "Sortable.html#Ext-util-Sortable-property-sortRoot" + }, + { + "tagname": "property", + "name": "sorters", + "member": "Ext.util.Sortable", + "type": "Ext.util.MixedCollection", + "doc": "

The collection of Sorters currently applied to this Store

\n", + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Sortable.js", + "linenr": 45, + "html_filename": "Sortable.html", + "href": "Sortable.html#Ext-util-Sortable-property-sorters" + } + ], + "event": [ + + ], + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Sortable.js", + "linenr": 1, + "html_filename": "Sortable.html", + "href": "Sortable.html#Ext-util-Sortable", + "cssVar": [ + + ], + "cssMixin": [ + + ], + "component": false, + "superclasses": [ + + ], + "subclasses": [ + + ], + "mixedInto": [ + "Ext.data.AbstractStore", + "Ext.util.MixedCollection" + ], + "allMixins": [ + + ] +}); \ No newline at end of file