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

forEachItem

iterator, calls a user-defined handler for each item

void forEachItem(function handler);

Parameters

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