Check documentation for the latest version of dhtmlxSuite forEachItem DHTMLX Docs

forEachItem

iterator, calls a user-defined handler for each item

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

Example

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

Back to top