Functiondojox.wire.TreeAdapter._getNodes

dojo.require("dojox.wire.TreeAdapter");
defined in dojox/wire/TreeAdapter.js

This method calls getValue() method of 'node' Wires with 'object' argument to get object(s) that represents nodes. (If 'node' Wires are omitted, 'object' 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 node objects are returned.

Usage

function (/*Object*/ object, /*Object*/ child) (view source)
parametertypedescription
objectObjectAn object
childObjectAn object with child Wires