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

Represents a filter that can be applied to a MixedCollection. Can either simply\nfilter on a property/value pair or pass in a filter function with custom logic. Filters are always used in the context\nof MixedCollections, though Stores frequently create them when filtering and searching on their\nrecords. Example usage:

\n\n\n
//set up a fictional MixedCollection containing a few people to filter on\nvar allNames = new Ext.util.MixedCollection();\nallNames.addAll([\n    {id: 1, name: 'Ed',    age: 25},\n    {id: 2, name: 'Jamie', age: 37},\n    {id: 3, name: 'Abe',   age: 32},\n    {id: 4, name: 'Aaron', age: 26},\n    {id: 5, name: 'David', age: 32}\n]);\n\nvar ageFilter = new Ext.util.Filter({\n    property: 'age',\n    value   : 32\n});\n\nvar longNameFilter = new Ext.util.Filter({\n    filterFn: function(item) {\n        return item.name.length > 4;\n    }\n});\n\n//a new MixedCollection with the 3 names longer than 4 characters\nvar longNames = allNames.filter(longNameFilter);\n\n//a new MixedCollection with the 2 people of age 24:\nvar youngFolk = allNames.filter(ageFilter);\n
\n\n", + "extends": "Object", + "mixins": [ + + ], + "alternateClassNames": [ + + ], + "xtype": null, + "author": null, + "docauthor": null, + "singleton": false, + "private": false, + "cfg": [ + { + "tagname": "cfg", + "name": "anyMatch", + "member": "Ext.util.Filter", + "type": "Boolean", + "doc": "

True to allow any match - no regex start/end line anchors will be added. Defaults to false

\n", + "private": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Filter.js", + "linenr": 53, + "html_filename": "Filter.html", + "href": "Filter.html#Ext-util-Filter-cfg-anyMatch" + }, + { + "tagname": "cfg", + "name": "caseSensitive", + "member": "Ext.util.Filter", + "type": "Boolean", + "doc": "

True to make the regex case sensitive (adds 'i' switch to regex). Defaults to false.

\n", + "private": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Filter.js", + "linenr": 64, + "html_filename": "Filter.html", + "href": "Filter.html#Ext-util-Filter-cfg-caseSensitive" + }, + { + "tagname": "cfg", + "name": "exactMatch", + "member": "Ext.util.Filter", + "type": "Boolean", + "doc": "

True to force exact match (^ and $ characters added to the regex). Defaults to false.\nIgnored if anyMatch is true.

\n", + "private": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Filter.js", + "linenr": 58, + "html_filename": "Filter.html", + "href": "Filter.html#Ext-util-Filter-cfg-exactMatch" + }, + { + "tagname": "cfg", + "name": "filterFn", + "member": "Ext.util.Filter", + "type": "Function", + "doc": "

A custom filter function which is passed each item in the Ext.util.MixedCollection\nin turn. Should return true to accept each item or false to reject it

\n", + "private": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Filter.js", + "linenr": 48, + "html_filename": "Filter.html", + "href": "Filter.html#Ext-util-Filter-cfg-filterFn", + "shortDoc": "A custom filter function which is passed each item in the Ext.util.MixedCollection\nin turn. Should return true to acc..." + }, + { + "tagname": "cfg", + "name": "property", + "member": "Ext.util.Filter", + "type": "String", + "doc": "

The property to filter on. Required unless a filter is passed

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

Optional root property. This is mostly useful when filtering a Store, in which case we set the\nroot to 'data' to make the filter pull the property out of the data object of each item

\n", + "private": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Filter.js", + "linenr": 69, + "html_filename": "Filter.html", + "href": "Filter.html#Ext-util-Filter-cfg-root", + "shortDoc": "Optional root property. This is mostly useful when filtering a Store, in which case we set the\nroot to 'data' to make..." + } + ], + "method": [ + { + "tagname": "method", + "name": "Filter", + "member": "Ext.util.Filter", + "doc": "\n", + "params": [ + { + "type": "Object", + "name": "config", + "doc": "

Config object

\n", + "optional": false + } + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Filter.js", + "linenr": 1, + "html_filename": "Filter.html", + "href": "Filter.html#Ext-util-Filter-method-constructor", + "shortDoc": "\n" + } + ], + "property": [ + + ], + "event": [ + + ], + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Filter.js", + "linenr": 1, + "html_filename": "Filter.html", + "href": "Filter.html#Ext-util-Filter", + "cssVar": [ + + ], + "cssMixin": [ + + ], + "component": false, + "superclasses": [ + + ], + "subclasses": [ + + ], + "mixedInto": [ + + ], + "allMixins": [ + + ] +}); \ No newline at end of file