dojo.NodeList
<script src="../../js/dojo.js"></script>
defined in dojo/_base/NodeList.js
dojo.NodeList is as subclass of Array which adds syntactic sugar for chaining, common iteration operations, animation, and node manipulation. NodeLists are most often returned as the result of dojo.query() calls.
Usage
function () (view source)
Examples
Example 1
create a node list from a node
new dojo.NodeList(dojo.byId("foo"));
FunctionsBack to top
add a node or some HTML as a string to every item in the list. Returns the original list.
places any/all elements in queryOrListOrNode at a
Animate one or more CSS properties for all nodes in this list. The returned animation object will already be playing when it is returned. See the docs for `dojo.anim` for full details.

see dojo.animateProperty(). Animate all elements of this NodeList across the properties specified.
Returns a new NodeList comprised of items in this NodeList as well as items passed in as parameters

Returns the box objects all elements in a node list as an Array (*not* a NodeList)


clears all content from each node in the list
see `dojo.every()` and: <http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Array:every> Takes the same structure of arguments and returns as dojo.every() with the caveat that the passed array is implicitly this NodeList

fade in all elements of this NodeList. Returns an instance of dojo._Animation

fade out all elements of this NodeList. Returns an instance of dojo._Animation

fade all elements of the node list to a specified opacity
"masks" the built-in javascript filter() method to support passing a simple string filter in addition to supporting filtering function objects.

see dojo.forEach(). The primary difference is that the acted-on array is implicitly this NodeList

highlight all elements of the node list. Returns an instance of dojo._Animation
see dojo.indexOf(). The primary difference is that the acted-on array is implicitly this NodeList
Create a new instance of a specified class, using the specified properties and each node in the nodeList as a srcNodeRef
see dojo.lastIndexOf(). The primary difference is that the acted-on array is implicitly this NodeList
see dojo.map(). The primary difference is that the acted-on array is implicitly this NodeList and the return is a dojo.NodeList (a subclass of Array)
removes elements in this list that match the simple filter from their parents and returns them as a new NodeList.
places elements of this node list relative to the first element matched by queryOrNode. Returns the original NodeList.
Returns a new, flattened NodeList. Elements of the new list satisfy the passed query but use elements of the current NodeList as query roots.

size all elements of this NodeList. Returns an instance of dojo._Animation

slide all elements of this NodeList. Returns an instance of dojo._Animation

slide all elements of the node list to the specified place. Returns an instance of dojo._Animation
see dojo.some() and: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Array:some Takes the same structure of arguments and returns as dojo.some() with the caveat that the passed array is implicitly this NodeList
Returns a new NodeList, manipulating this NodeList based on the arguments passed, potentially splicing in new elements at an offset, optionally deleting elements

wipe in all elements of this NodeList. Returns an instance of dojo._Animation

wipe out all elements of this NodeList. Returns an instance of dojo._Animation

Wipe all elements of the NodeList to a specified width: or height:
