DHTMLX Docs & Samples Explorer

forEachItem(handler)

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

Parameters:

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