add
Form
Field
open override fun addFormField( fieldName: String, view: View, rules: List<BaseRule>, action: (String) -> Unit?)
Content copied to clipboard
method to add formField to the FormDelegation.form
Parameters
fieldName
name of the com.devbase.presentation.validation.model.FormField, used to get the value later
view
View to be added to the FormDelegation.form
rules
list of BaseRule to validate the field
action
to override default error messaging when the field is not validated