Skip to main content

Introducing Workflow Engine, try for FREE workflowengine.io.

Interface: IStore

@react-form-builder/core.IStore

The form viewer settings interface.

Implemented by

Properties

dispose

dispose: () => void

Type declaration

▸ (): void

Correctly clears allocated resources, the function must be called when destroying an instance of the class.

Returns

void


form

form: Form

The displayed form.


localizeErrorMessages

localizeErrorMessages: (componentStore: ComponentStore, validationResults?: ValidationResult[]) => undefined | string

Type declaration

▸ (componentStore, validationResults?): undefined | string

The function to localize the validation error message.

Parameters
NameTypeDescription
componentStoreComponentStorethe component settings.
validationResults?ValidationResult[]the results of the validation.
Returns

undefined | string

the result of localization or undefined.


reduceScreen

reduceScreen: <T>(callback: (accumulator: T, current: ComponentData) => T, initialValue: T) => T

Type declaration

▸ <T>(callback, initialValue): T

Performs the callback function on each element of the component tree, accumulates the return values.

Type parameters
NameDescription
Tthe return value type.
Parameters
NameTypeDescription
callback(accumulator: T, current: ComponentData) => Tthe function that calculates the value for the accumulator.
initialValueTthe initial value for the accumulator.
Returns

T

the accumulated value.

Accessors

initialDataSlice

get initialDataSlice(): undefined | Record<string, unknown>

Returns

undefined | Record<string, unknown>

the slice of the initial data in accordance with the Store hierarchy. Internal use only.