 			type: "content-resize"
 			node: els[0]
 		@
+
+	__setClassOnField: (field_name, cls, add_remove) ->
+		for field in @getFieldsByName(field_name)
+			row = CUI.DOM.closest(field.DOM, "[data-for-field]")
+			if not row
+				continue
+
+			if add_remove
+				CUI.DOM.addClass(row, cls)
+			else
+				CUI.DOM.removeClass(row, cls)
+		@
+
+	addClassToField: (field_name, cls) ->
+		@__setClassOnField(field_name, cls, true)
+
+	removeClassFromField: (field_name, cls) ->
+		@__setClassOnField(field_name, cls, false)
 
 	getFieldsByName: (name, found_fields = []) ->
 		assert(isString(name), "#{@__cls}.getFieldsByName", "name must be String.", name: name)


				table.appendChild(tr)
			else
				row = CUI.DOM.element("DIV", class: "cui-form-row", "data-for-field": field.getUniqueId())
				row.appendChild(get_append(field))
				append(get_append(field), row)
				append(hint_div, row)

					if isString(field._form.hint)
						hint_div.appendChild(new Label(class: "cui-form-hint-label", icon: field._form.hint_icon, text: field._form.hint, multiline: true, markdown: true).DOM)
					else
						CUI.DOM.append(hint_div, field._form.hint)

				if field._form.right
					add_hint_div()
