Form Delegate

interface FormDelegate

Author

Jimly A.

Since

16-Mar-22

Functions

Link copied to clipboard
abstract fun addFormField(    fieldName: String,     view: View,     rules: List<BaseRule>,     action: (String) -> Unit? = null)

Method to add field to the form

Link copied to clipboard
abstract fun getFormValues(): HashMap<String, String>

Method to get values from fields

Link copied to clipboard
abstract fun onNotValidated()

Method to run when form is not validated

Link copied to clipboard
abstract fun onValidated()

Method to run action when form is validated

Properties

Link copied to clipboard
abstract val form: Formulir

Form instance to validate input

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Sources

Link copied to clipboard