DHTMLX Docs & Samples Explorer

Index
dhtmlxtoolbar
API Methods

### forEachItem(handler)

Required library edition:
Required library file: dhtmlxtoolbar.js

iterator, calls user handler for each item

- handler - user function, will take item id as an argument

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