DHTMLX Docs & Samples Explorer

Index
dhtmlxtoolbar
API Methods

### forEachListOption(parentId, handler)

Required library edition:
Required library file: dhtmlxtoolbar.js

calls user defined handler for each listed option of parentId

- parentId - id of a select button
- handler - user defined function, listed option id will passed as an argument

        toolbar.forEachListOption(parentId, function(optionId){
            // code here
        });
        // or
        function doWithListOption(optionId){
            // code here
        }
        toolbar.forEachListOption(parentId, doWithListOption);