FormController

open class FormController(component: Component<*>, val stopEvents: Boolean = true)

Constructors

Link copied to clipboard
fun FormController(component: Component<*>, stopEvents: Boolean = true)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun ifValidate(andThen: () -> Unit)

Validates all fields by touching them first and showing potential errors.

Link copied to clipboard
fun resetAllFields()

Resets the input of all fields

Link copied to clipboard
fun validate(): Boolean

Validates all fields by touching them first.

Properties

Link copied to clipboard
val fields: MutableSet<FormField<*>>
Link copied to clipboard
val isNotValid: Boolean

Returns true when some fields are NOT valid

Link copied to clipboard
val isValid: Boolean

Returns true when all fields are valid

Link copied to clipboard
val numErrors: Int

Number of fields with errors

Link copied to clipboard
val stopEvents: Boolean = true