Check documentation for the latest version of dhtmlxSuite forEachItem DHTMLX Docs

forEachItem

iterator, calls a user-defined handler function for each item

void forEachItem(function handler);
handlerfunctiona user-defined function, will take the item id as an argument

Example

myMenu.forEachItem(function(itemId){
    // your code here
});
// or
function doWithItem(itemId){
    // your code here
}
myMenu.forEachItem(doWithItem);

Back to top