DHTMLX Docs & Samples Explorer

forEachItem(handler)

Required library edition: This method works with any edition of DHTMLX library
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);