- DefaultFormSubscription
DefaultFormSubstription
All enabled form subscription options.
- DefaultFieldSubscription
DefaultFieldSubstription
All enabled field subscription options.
- TextInputTransform
Text input transform.
Transforms a non-empty input value.
- fieldInputProp(state, transformer) ⇒
FieldProp
Extract the field props to be used in the field input.
- formStateErrors(state) ⇒
Collect all form errors from validation error and submission error.
- useFieldState(param) ⇒
Create a reactive field state object with extended functionality.
- useFormState(input)
Create a bind object for the form state.
- getStringFromInput(ev)
Extract a string value of a
HTMLElement
from aInputEvent
.- useForm(config) ⇒
Create a form controller.
DefaultFormSubstription
All enabled form subscription options.
DefaultFieldSubstription
All enabled field subscription options.
Text input transform.
Transforms a non-empty input value.
Extract the field props to be used in the field input.
Kind: global function
Returns: FieldProp
- field props
Param | Description |
---|---|
state | field state |
transformer | input transform |
Collect all form errors from validation error and submission error.
Kind: global function
Returns: All form errors.
Param | Description |
---|---|
state | Form state. |
Create a reactive field state object with extended functionality.
Kind: global function
Returns: Reactive binding object.
Param | Description |
---|---|
param | Field bindind input. |
Create a bind object for the form state.
Kind: global function
Param | Description |
---|---|
input | Form bind input. |
Extract a string value of a HTMLElement
from a InputEvent
.
Kind: global function
Param | Description |
---|---|
ev | InputEvent |
Create a form controller.
Kind: global function
Returns: Reactive form api.
Param | Description |
---|---|
config | Form api configuration. |