Type parameter | Description |
---|---|
TInputs: InputGroupContent |
content of an input group. This is typically inferred at instantiation time from the constructor. |
TActionResult | |
TActionProgress |
Form-specific options
Development-time settings
Form-specific options
Returns an array of the input group's structural items. Unlike [[flattenedInputs]], the subgroups are not broken down into inputs here.
Returns the validators of inputs specified at instantiation time that are currently in invalid state (doesn't have to be conclusively invalid).
Same as with value
but each value is the current input value, not the
confirmed input value.
Reflects the structure of inputs as provided in the constructor. If a function was passed in the constructor, it is evaluated here. Subgroups in the structures are collapsed into their structures.
Use structure if you need the subgroups preserved. Use [[flattenedInputs]] if you don't care about the structure and just want the inputs in an array.
Returns the subset of inputs specified at instantiation time that is currently undergoing asynchronous domain validation.
Return true if the form is submitting.
Returns the UI state's debug name.
Returns the next input that the form should advance to. This is defined as the next input that contains an error. If that doesn't exist, it is the next input that the user has not yet confirmed.
Same as with value
but each value is the current input value, normalized
by each input's normalizer.
Returns the structure of the input group. If the input structure contains subgroups, the subgroups are preserved here.
Use inputs to get the input structure without subgroups.
Use [[flattenedInputs]] to get an array of inputs whose order does not matter.
Returns the progress of the submit action. This is null if the submit task is still in validation phase.
Return the last submit result.
Returns the task state that represents the submit action.
Returns the subset of inputs specified at instantiation time that still have not be confirmed.
Returns a structure of confirmed input value that corresponds to the input structure
passed to the constructor. For instance, if the constructor was instantiated
with { a : someInput, b: someOuterInput }
, the value here will also have the
keys a
and b
whose value are the respective input values.
Batch-confirm the inputs using the value that is provided in the group. Note that unlike individually confirming an input, this does not permit an option to advance the focus to the "next" input.
Batch-reset the inputs using the value that is provided in the group. This is the same as calling reset on the individual input instances.
Submits the form.export type
Generated using TypeDoc
Represents a form state. A form is essentially an InputGroup that validates over its member inputs before performing a form-specific action.
InputGroup Input Group