All functions in this module are action creators and the return value should be passed to the redux store dispatch() function
Members
-
<static, constant> composeCompositeInputs
-
Uses the formatter passed to CompositeInput components to format the inner values of a CompositeInput to a composed value.
-
<static, constant> decomposeCompositeInput
-
Uses the decompose function in the compositeInputFormatter configuration to decompose a single composite value back to values of the inputs and update them accordingly. If no decompose function is configured, will ignore this call.
Methods
-
registerCompositeInput(form, field, formatter, composeOn)
-
Register a composite input mount
Parameters:
Name Type Description formstring The id of the redux-form that the input is rendered in
fieldstring The name to register the composite input under
formatterObject One of the formatters to use as defined in compositeInputFormatters.js
composeOnstring A string indicating on which event the composite input should run its formatter, besides running before each validation round
Returns:
The action
- Type
- object
-
unregisterCompositeInput(form, field)
-
Register a composite input unmount
Parameters:
Name Type Description formstring The id of the redux-form that the input was rendered in
fieldstring The name of the composite input
Returns:
The action
- Type
- object