ios - Swift Eureka form library - how do I customize a field after the form has rendered -
i have field highlight after validation error. looking @ documentation i'm not sure customize after field has been initialized.
as there yet no direct way validation, easiest way validate row using onchange() callback.
<<< textrow() { $0.title = "title" }.onchange{ row in if row.value?.containsstring("error") == true { row.cell.contentview.layer.bordercolor = uicolor.redcolor().cgcolor row.cell.contentview.layer.borderwidth = 2 } }
you can other customization there well.
Comments
Post a Comment