DHTMLX Docs & Samples Explorer

Index
dhtmlxlayout
API Methods

### forEachItem(handler)

Required library edition:
Required library file: dhtmlxlayout.js

iterator, calls a user-defined function n-times

- handler - user-defined function, passed cell's object as an argument

        dhxLayout.forEachItem(function(item){
            // do action with item, for example
            item.hideHeader();
        });
        // or
        function doWithItem(item) {
            item.hideHeader();
        }
        dhxLayout.forEachItem(doWithItem);