domain: client
language: javascript
class AbstractItem
Use each_item method to iterate over items owned by this object.
The each_item() method specifies a function to run for each child item (child item is passed as a parameter).
You can break the each_item loop at a particular iteration by making the callback function return false.
The following code will output all catalogs of the project in a browser console:
function on_page_loaded(task) {
task.catalogs.each_item(function(item) {
console.log(item.item_name);
})
}