dojox/wire/TableAdapter.js

  • Provides:

    • dojox.wire.TableAdapter
  • Requires:

    • dojox.wire.CompositeWire in common
  • dojox.wire.TableAdapter

    • type
      Function
    • chains:
      • dojox.wire.CompositeWire: (prototype)
      • dojox.wire.CompositeWire: (call)
    • summary
      Initialize properties
    • description
      If object properties or array elements specified in 'columns'
      property are not Wires, Wires are created from them as
      arguments, with 'parent' property set to this Wire instance.
    • parameters:
      • args: (typeof Object)
        Arguments to initialize properties
        columns:
        An object or array containing child Wires for column values
    • source: [view]
        this._initializeChildren(this.columns);
  • dojox.wire.TableAdapter._wireClass

    • summary
  • dojox.wire.TableAdapter._getValue

    • type
      Function
    • parameters:
      • object: (typeof Array)
        A root array
    • source: [view]
        if(!object || !this.columns){
         return object; //Array
        }


        var array = object;
        if(!dojo.isArray(array)){
         array = [array];
        }


        var rows = [];
        for(var i in array){
         var row = this._getRow(array[i]);
         rows.push(row);
        }
        return rows; //Array
    • summary
      Return an array of table row value (object or array)
    • description
      This method iterates over an array specified to 'object'
      argument and calls getValue() method of the child Wires with
      each element of the array to get a row object or array.
      Finally, an array with the row objects or arrays are retuned.
    • return_summary
      An array of table row value
    • returns
      Array
  • dojox.wire.TableAdapter._setValue

    • type
      Function
    • parameters:
      • object: (typeof Array)
      • value: (typeof Array)
    • source: [view]
        throw new Error("Unsupported API: " + this._wireClass + "._setValue");
    • summary
      Not supported
  • dojox.wire.TableAdapter._getRow

    • type
      Function
    • parameters:
      • object: (typeof Object||Array)
    • source: [view]
        var row = (dojo.isArray(this.columns) ? [] : {}); // array or object
        for(var c in this.columns){
         row[c] = this.columns[c].getValue(object);
        }
        return row; //Array||Object
    • summary
      Return an array or object for a table row
    • description
      This method calls getValue() method of the child Wires to
      create a row object or array.
    • return_summary
      An array or object for a table row
    • returns
      Array||Object
  • dojox.wire

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary