FormState

interface FormState<T>

The managed state of a form.

Parameters

T

The type of the form value.

Properties

Link copied to clipboard

The dependencies of the form fields.

Link copied to clipboard
abstract val errors: FormErrors

The validation errors of the form.

Link copied to clipboard
open val hasError: Boolean

Returns true if the form has validation error, false otherwise.

Link copied to clipboard
abstract val initialValue: T

The initial value of the form.

Link copied to clipboard
abstract val isSubmitted: Boolean

Whether the form has been submitted.

Link copied to clipboard
abstract val isSubmitting: Boolean

Whether the form is currently submitting.

Link copied to clipboard
abstract val rules: FormRules<T>

The validation rules of the form.

Link copied to clipboard
abstract val submitCount: Int

The number of times submission process was called.

Link copied to clipboard
abstract val triggers: FormTriggers

The validation triggers of the form.

Link copied to clipboard
abstract val value: T

The current value of the form.

Link copied to clipboard

The field dependencies of the form fields.