Fix #5654 - roojspacker - get it working as a doc tool...
[roojs1] / docs / symbols / Roo.data.ArrayReader.json
similarity index 76%
rename from docs2/symbols/Roo.data.ArrayReader.json
rename to docs/symbols/Roo.data.ArrayReader.json
index b3c23d6..114b164 100644 (file)
@@ -5,21 +5,42 @@
   ],
   "desc" : "Data reader class to create an Array of Roo.data.Record objects from an Array.\nEach element of that Array represents a row of data fields. The\nfields are pulled into a Record object using as a subscript, the <em>mapping</em> property\nof the field definition if it exists, or the field's ordinal position in the definition.<br>\n<p>\nExample code:.\n<pre><code>\nvar RecordDef = Roo.data.Record.create([\n    {name: 'name', mapping: 1},         // \"mapping\" only needed if an \"id\" field is present which\n    {name: 'occupation', mapping: 2}    // precludes using the ordinal position as the index.\n]);\nvar myReader = new Roo.data.ArrayReader({\n    id: 0                     // The subscript within row Array that provides an ID for the Record (optional)\n}, RecordDef);\n</code></pre>\n<p>\nThis would consume an Array like this:\n<pre><code>\n[ [1, 'Bill', 'Gardener'], [2, 'Ben', 'Horticulturalist'] ]\n  </code></pre>",
   "isSingleton" : false,
-  "isStatic" : true,
+  "isStatic" : false,
   "isBuiltin" : false,
+  "memberOf" : "ArrayReader",
+  "example" : "",
+  "deprecated" : "",
+  "since" : "",
+  "see" : "",
+  "params" : [
+    {
+      "name" : "meta",
+      "type" : "Object",
+      "desc" : "Metadata configuration options.",
+      "isOptional" : false
+    },
+    {
+      "name" : "recordType",
+      "type" : "Object|Array",
+      "desc" : "Either an Array of field definition objects",
+      "isOptional" : false
+    }
+  ],
+  "returns" : [
+  ],
   "config" : [
     {
-      "name" : "fields",
-      "type" : "Array",
-      "desc" : "Array of field definition objects",
+      "name" : "id",
+      "type" : "String",
+      "desc" : "Name of the property within a row object that contains a record identifier value.\nas specified to {@link Roo.data.Record#create},\nor an {@link Roo.data.Record} object\n\n\ncreated using {@link Roo.data.Record#create}.",
       "memberOf" : "Roo.data.ArrayReader",
       "values" : [
       ]
     },
     {
-      "name" : "id",
-      "type" : "String",
-      "desc" : "(optional) The subscript within row Array that provides an ID for the Record",
+      "name" : "fields",
+      "type" : "Array",
+      "desc" : "Array of field definition objects",
       "memberOf" : "Roo.data.ArrayReader",
       "values" : [
       ]
@@ -49,7 +70,7 @@
         {
           "name" : "",
           "type" : "Object",
-          "desc" : "data A data block which is used by an Roo.data.Store object as\na cache of Roo.data.Records."
+          "desc" : "A data block which is used by an {@link Roo.data.Store} object as\na cache of Roo.data.Records."
         }
       ]
     },