FormState interface

Module @runic-artifex/views in @runic-artifex/views 0.23.0

interface FormState

The state of a form: what its fields show, combined.

Properties

dirty

readonly dirty: boolean;

The form has changes that are not saved: the dirty option reports them (such as the View's isDirty, which a .NET RunicEditSession computes), or a field has a draft that is not written to the View yet.

editing

readonly editing: boolean;

A field has a draft: an input whose write is waiting, in flight, failed or does not parse.

validating

readonly validating: boolean;

A field's validation is in progress (validating, validation-pending/1).

pending

readonly pending: boolean;

editing or validating, or a submit runs: the form is not settled.

valid

readonly valid: boolean;

No field has validation messages (errors) or a failed write or text (error).

submitting

readonly submitting: boolean;

A submit runs.