dojox.wire.TreeAdapter._getValue
dojo.require("dojox.wire.TreeAdapter");
defined in dojox/wire/TreeAdapter.js
This method iterates over an array specified to 'object' argument and calls getValue() method of 'node' Wires with each element of the array to get object(s) that represetns nodes. (If 'node' Wires are omitted, the array element is used for further processing.) Then, getValue() method of 'title' Wires are called to get title strings for nodes. (If 'title' Wires are omitted, the objects representing nodes are used as title strings.) And if an array of objects with 'node' and 'title' Wires is specified to 'children', it is used to gather child nodes and their title strings in the same way recursively. Finally, an array of the top-level node objects are retuned.
Usage
function (/*Array*/ object) (view source)
parameter | type | description |
---|---|---|
object | Array | A root array |