iterator, calls a user-defined handler function for each item
handler | function | a user-defined function, will take the item id as an argument |
myMenu.forEachItem(function(itemId){
// your code here
});
// or
function doWithItem(itemId){
// your code here
}
myMenu.forEachItem(doWithItem);
Back to top