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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

html - Outlook 2010 Anchor (url/address/link) -

android - How to create dynamically Fragment pager adapter -