X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/d41dc04ad17d1d9125fb2cf72db2b4782dbe3a8c..c8256059947f3aa8f5b0a9a2acf55e2142bb4742:/docs/output/Ext.data.ArrayReader.html diff --git a/docs/output/Ext.data.ArrayReader.html b/docs/output/Ext.data.ArrayReader.html index a7a9ae7c..d5a57b6e 100644 --- a/docs/output/Ext.data.ArrayReader.html +++ b/docs/output/Ext.data.ArrayReader.html @@ -1,194 +1,61 @@ -
-
- Properties - Methods - Events - Config Options - Direct Link -
-
-
DataReader
-  JsonReader
-    ArrayReader
-

Class Ext.data.ArrayReader

- - - - - -
Package:Ext.data
Defined In:ArrayReader.js
Class:ArrayReader
Extends:JsonReader
-
- * -Data reader class to create an Array of Ext.data.Record objects from an Array. +
DataReader
  JsonReader
    ArrayReader

Class Ext.data.ArrayReader

Package:Ext.data
Defined In:ArrayReader.js
Class:ArrayReader
Extends:JsonReader

Data reader class to create an Array of Ext.data.Record objects from an Array. Each element of that Array represents a row of data fields. The -fields are pulled into a Record object using as a subscript, the mapping property -of the field definition if it exists, or the field's ordinal position in the definition.
-

-Example code:. -

var Employee = Ext.data.Record.create([
+fields are pulled into a Record object using as a subscript, the mapping property
+of the field definition if it exists, or the field's ordinal position in the definition.

+

Example code:

+
var Employee = Ext.data.Record.create([
     {name: 'name', mapping: 1},         // "mapping" only needed if an "id" field is present which
     {name: 'occupation', mapping: 2}    // precludes using the ordinal position as the index.
 ]);
 var myReader = new Ext.data.ArrayReader({
-    id: 0                     // The subscript within row Array that provides an ID for the Record (optional)
+    idIndex: 0
 }, Employee);
-

-This would consume an Array like this: -

[ [1, 'Bill', 'Gardener'], [2, 'Ben', 'Horticulturalist'] ]
- -
- -

Config Options

- - - - - - - - - - - - - - - - - - - - - - - - - -
Config OptionsDefined By
  - - id : String
- (optional) The subscript within row Array that provides an ID for the Record
-
ArrayReader
  - - root : String
- name of the property which contains the Array of row objects.
-
JsonReader
  - - successProperty : String
- Name of the property from which to retrieve the success attribute used by forms.
-
JsonReader
- -

Public Properties

- - - - - - - - - - - - - - - -
PropertyDefined By
  - - meta : Mixed
- This DataReader's configured metadata as passed to the constructor.
-
DataReader
- -

Public Methods

- - - - - - - - - - - - - - - - - - - - -
MethodDefined By
- -

Public Events

-
This class has no public events.
-
\ No newline at end of file +

This would consume an Array like this:

+
[ [1, 'Bill', 'Gardener'], [2, 'Ben', 'Horticulturalist'] ]

Config Options

Config OptionsDefined By
 id : Number
The subscript within row Array that provides an ID for the Record. +Deprecated. Use idIndex instead.
ArrayReader
 idIndex : Number
The subscript within row Array that provides an ID for the Record.
ArrayReader
 idProperty : String
[id] Name of the property within a row object +that contains a record identifier value. Defaults to id
JsonReader
 messageProperty : String
[undefined] Optional name of a property within a server-response that represents a user-feedback message.
DataReader

Public Properties

PropertyDefined By
 buildExtractors : Object
Abstract method, overridden in DataReader extensions such as Ext.data.JsonReader and Ext.data.XmlReader
DataReader
 extractValues : Object
Abstract method overridden in DataReader extensions such as Ext.data.JsonReader and Ext.data.XmlReader
DataReader
 getId : Object
Abstract method created in extension's buildExtractors impl.
DataReader
 getMessage : Object
Abstract method created in extension's buildExtractors impl.
DataReader
 getRoot : Object
Abstract method created in extension's buildExtractors impl.
DataReader
 getSuccess : Object
Abstract method created in extension's buildExtractors impl.
DataReader
 getTotal : Object
Abstract method created in extension's buildExtractors impl.
DataReader
 meta : Mixed
This JsonReader's metadata as passed to the constructor, or as passed in +the last data packet's metaData property.
JsonReader

Public Methods

MethodDefined By

Public Events

This class has no public events.
\ No newline at end of file