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

Popular posts from this blog

1111. appearing after print sequence - php -

excel - I can't get the attachement of the email PHP -

node.js - Express and Redis - If session exists for this user, don't allow access -