Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
joo.classLoader.prepare("package ext.config",/* {*/

 * Data reader class to create an Array of <a href=""></a> 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 <code>mapping</code> property of the field definition if it exists, or the field's ordinal position in the definition.
 <p>Example code:</p><pre><code>var Employee =[
 {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{
 <a href="output/">idIndex</a>: 0
 }, Employee);
 </code></pre><p>This would consume an Array like this:</p><pre><code>[ [1, 'Bill', 'Gardener'], [2, 'Ben', 'Horticulturalist'] ]
 * <p>This class serves as a
 * typed config object for constructor of class ArrayReader.</p>
 * <p>Copyright &#169; 2011 Sencha Inc.</p>
 * @see
"public class arrayreader extends ext.config.jsonreader",4,function($$private){var $1=ext.config;return[ 

  "public function arrayreader",function arrayreader(config/*:Object = null*/) {if(arguments.length<=0)config=null;


   The subscript within row Array that provides an ID for the Record. Deprecated. Use <a href="output/">idIndex</a> instead.
  "public native function get id"/*():Number*/,

   * @private
  "public native function set id"/*(value:Number):void*/,

   The subscript within row Array that provides an ID for the Record.
  "public native function get idIndex"/*():Number*/,

   * @private
  "public native function set idIndex"/*(value:Number):void*/,

undefined];},[],["ext.config.jsonreader"], "0.8.0", "2.0.13"
New to GrepCode? Check out our FAQ X