Form Field

fun FormField(    fieldName: String,     view: View,     rules: List<BaseRule>,     action: (String) -> Unit? = null)

Parameters

fieldName

name of the field, used for getting values

view

the View of field, right now supported view is : EditText, TextInputLayout, Spinner, RadioGroup, and CheckBox

rules

list of rules of for the view

action

custom action to do when field is not validated, nullable

Sources

Link copied to clipboard