FormField

Functions

Link copied to clipboard
fun <P> FormField<P>.renderErrors(flow: FlowContent)
Link copied to clipboard
abstract fun reset()

Resets the form field.

Link copied to clipboard
abstract fun touch()

Marks the form field as touched.

Link copied to clipboard
abstract fun untouch()

Marks the form field as not touched.

Link copied to clipboard
abstract fun validate(): Boolean

Validates all rules and returns true if all rules are fulfilled.

Properties

Link copied to clipboard
abstract val errors: List<String>

The errors the field currently has

Link copied to clipboard
open val hasErrors: Boolean

Returns true when the field has errors

Link copied to clipboard
abstract val touched: Boolean

Marker if the component was touched.