Check documentation for the latest version 6.0 of dhtmlxSuite forEachItem DHTMLX Docs

forEachItem

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

void forEachItem(function handler);

Parameters

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