DHTMLX Docs & Samples Explorer

forEachItem(handler)

Iterator. Calls user-defined handler for each item and pass item name into it as an argument.

  • handler - user-defined handler, gets item's name (id) as argument.
dhxForm.forEachItem(function(id){
   dhxForm.setItemLabel(id, String(dhxForm.getItemText(id)).toLowerCase());
});