OpenWGA 7.7 - TMLScript reference
CollectionResultMethod :
each(function)
On object | CollectionResult |
Usage |
Applies a function to each element of the collection result. |
Description |
The given function is called for every document that is retrieved from the collection and receives it as a TMLContext parameter. |
Parameters |
function (Function): A JavaScript function |
Return value |
The CollectionResult for further chaining. |
Allowed in script types |
|
Examples |
WGA.nav().children().each(function(doc){ |