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 @@ -
Properties Methods Events Config Options Direct Link
Observable
  Store
    JsonStore

Class Ext.data.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

Class Ext.data.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...
See the corresponding configuration option for a description of this property. To modify this property see setBaseParam.
Store fields : Ext.util.MixedCollection
A MixedCollection containing the defined Fields -for the Records stored in this Store. Read-only.
Store hasMultiSort : Boolean -True if this store is currently sorted by more than one field/direction combination.
Store isDestroyed : Boolean +for the Records stored in this Store. Read-only.
Store isDestroyed : Boolean True if the store has been destroyed already. Read only
Store lastOptions : Object
Contains the last options object used as the parameter to the load method. See load for the details of what this may ...
Contains the last options object used as the parameter to the load method. See load for the details of what this may contain. This may be useful for accessing any params which were used -to load the current Record cache.
Store multiSortInfo : Object -Object containing overall sort direction and an ordered array of sorter configs used when sorting on multiple fields
Store recordType : Function
The Record constructor as supplied to (or created by) the +to load the current Record cache.
Store multiSort : Boolean +True if this store is currently sorted by more than one field/direction combination.
Store multiSortInfo : Object
Object containing overall sort direction and an ordered array of sorter configs used when sorting on multiple fields
Store recordType : Function
The Record constructor as supplied to (or created by) the Reader. Read-only. If the Reader was constructed by passing...
The Record constructor as supplied to (or created by) the Reader. Read-only. @@ -322,13 +321,7 @@ should go based on the current sort information.
Commit all Records with outstanding changes. To handle updates for changes, subscribe to the Store's update event, an...
Commit all Records with outstanding changes. To handle updates for changes, subscribe to the Store's update event, and perform updating when the third parameter is -Ext.data.Record.COMMIT.
Parameters:
  • None.
Returns:
  • void
Store createMultipleFilterFnArray filters ) - : - Function
Given an array of filter functions (each with optional scope), constructs and returns a single function that returns -...
Given an array of filter functions (each with optional scope), constructs and returns a single function that returns -the result of all of the filters ANDed together
Parameters:
  • filters : Array
    The array of filter objects (each object should contain an 'fn' and optional scope)
Returns:
  • Function
    The multiple filter function
Store createSortFunctionString fieldString direction ) - : - Function
Creates and returns a function which sorts an array by the given field and direction
Creates and returns a function which sorts an array by the given field and direction
Parameters:
  • field : String
    The field to create the sorter for
  • direction : String
    The direction to sort by (defaults to "ASC")
Returns:
  • Function
    A function which sorts by the field/direction combination provided
Store destroy() +Ext.data.Record.COMMIT.
Parameters:
  • None.
Returns:
  • void
Store destroy() : void
Destroys the store.
Destroys the store.
Parameters:
  • None.
Returns:
  • void
Store eachFunction 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|Array
    A field on your records, or an array containing multiple filter options
  • value : String/RegExp
    Either a string that the field should begin with, or a RegExp to test +]);
Parameters:
  • field : String|Array
    A field on your records, or an array containing multiple filter options
  • value : String/RegExp
    Either 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 beginning
  • caseSensitive : Boolean
    (optional) true for case sensitive comparison
  • exactMatch : Boolean
    True to force exact match (^ and $ characters added to the regex). Defaults to false. Ignored if anyMatch is true.
Returns:
  • void
Store filterByFunction fn[Object scope] ) : void
Filter by a function. The specified function will be called for each @@ -626,8 +619,8 @@ false the load action will b...
Fires before a request is with an array of records for each action.
Store beforewrite : ( Ext.data.Store storeString actionRecord/Record[] rsObject optionsObject arg )
Listeners will be called with the following arguments:
  • store : Ext.data.Store
  • action : String
    [Ext.data.Api.actions.create|update|destroy]
  • rs : Record/Record[]
    The Record(s) being written.
  • options : Object
    The loading options that were specified. Edit options.params to add Http parameters to the request. (see save for details)
  • arg : Object
    The callback's arg object passed to the request function
Store clear : - ( Store thisRecord[] The ) -
Fires when the data cache has been cleared.
Fires when the data cache has been cleared.
Listeners will be called with the following arguments:
  • this : Store
  • The : Record[]
    records that were cleared.
Store datachanged : + ( Store thisRecord[] records ) +
Fires when the data cache has been cleared.
Fires when the data cache has been cleared.
Listeners will be called with the following arguments:
  • this : Store
  • records : Record[]
    The records that were cleared.
Store datachanged : ( Store this )
Fires when the data cache has changed in a bulk manner (e.g., it has been sorted, filtered, etc.) and a widget that i...
Fires when the data cache has changed in a bulk manner (e.g., it has been sorted, filtered, etc.) and a