X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6a7e4474cba9d8be4b2ec445e10f1691f7277c50..f5240829880f87e0cf581c6a296e436fdef0ef80:/docs/output/Ext.data.JsonStore.html?ds=sidebyside diff --git a/docs/output/Ext.data.JsonStore.html b/docs/output/Ext.data.JsonStore.html index 113abbd2..a797ae26 100644 --- a/docs/output/Ext.data.JsonStore.html +++ b/docs/output/Ext.data.JsonStore.html @@ -1,4 +1,4 @@ -
Observable Store JsonStore
Package: | Ext.data |
Defined In: | JsonStore.js |
Class: | JsonStore |
Extends: | Store |
Small helper class to make creating Ext.data.Stores from JSON data easier. +
Observable Store JsonStore
Package: | Ext.data |
Defined In: | JsonStore.js |
Class: | JsonStore |
Extends: | Store |
Small helper class to make creating Ext.data.Stores from JSON data easier. A JsonStore will be automatically configured with a Ext.data.JsonReader.
A store configuration would be something like:
var store = new Ext.data.JsonStore({
// store configs
@@ -181,13 +181,12 @@ for a description of this property.
To modify this property see setBasePar...
corresponding configuration option
for a description of this property.
To modify this property see setBaseParam
.Array filters
)
- :
- Functionfilters
: ArrayFunction
String field
, String direction
)
- :
- Functionfield
: Stringdirection
: StringFunction
Function fn
, [Object scope
] )
:
@@ -376,21 +369,21 @@ options to filter by more than one property.
Single filter example:
store.filter('name', 'Ed', true, true); //finds all records containing the substring 'Ed'
Multiple filter example:
-store.filter([
+store.filter([
{
-property : 'name',
-value : 'Ed',
-anyMatch : true, //optional, defaults to true
-caseSensitive: true //optional, defaults to true
+property : 'name',
+value : 'Ed',
+anyMatch : true, //optional, defaults to true
+caseSensitive: true //optional, defaults to true
},
-//filter functions can also be passed
+//filter functions can also be passed
{
-fn : function(record) {
-return record.get('age') == 24
+fn : function(record) {
+return record.get('age') == 24
},
scope: this
}
-]);Parameters:field
: String|ArrayA field on your records, or an array containing multiple filter optionsvalue
: String/RegExpEither a string that the field should begin with, or a RegExp to test
+]);Parameters:field
: String|ArrayA field on your records, or an array containing multiple filter optionsvalue
: String/RegExpEither a string that the field should begin with, or a RegExp to test
against the field.anyMatch
: Boolean(optional) true to match any part not just the beginningcaseSensitive
: Boolean(optional) true for case sensitive comparisonexactMatch
: BooleanTrue to force exact match (^ and $ characters added to the regex). Defaults to false. Ignored if anyMatch is true.
Returns:- void
Function fn
, [Object scope
] )
:
voidExt.data.Store store
, String action
, Record/Record[] rs
, Object options
, Object arg
)
store
: Ext.data.Storeaction
: Stringrs
: Record/Record[]options
: Objectoptions.params
to add Http parameters to the request. (see save for details)arg
: ObjectStore this
, Record[] The
)
- this
: StoreThe
: Record[]Store this
, Record[] records
)
+ this
: Storerecords
: Record[]Store this
)