Finds sidebar nodes that have attributes defined inattr and returns them or an empty array.
find([parent], attrs)
parent string, id of the parent node (optional)
attrs object, attributes to match
Returns array.


The attrs argument needs to be specified. It can be an empty object - {} - which will return you an array of all nodes.
You can optionally specify parent, which is an id of the parent node. If parent is specified then it will limit the search scope to that parent and its subnodes.
If you defined the object in the following way: To get all disabled nodes: To get all nodes:

User Comments

comments powered by Disqus