Skip to main content

Interface: StoreProps

@react-form-builder/core.StoreProps

The form viewer properties.

Hierarchy

Properties

actions

Optional actions: ActionDefinition[]

External actions for the form viewer.


componentWrapper

Optional componentWrapper: ComponentType<any>

The React component that wraps every component in a form.


data

Optional data: Record<string, unknown>

The initial data of the form.


erroneous

Optional erroneous: boolean

No use a error wrap component.


formName

Optional formName: string

the form name.


getForm

Optional getForm: (name?: string) => PersistedForm | Promise<PersistedForm>

Type declaration

▸ (name?): PersistedForm | Promise<PersistedForm>

Loads the form.

Parameters
NameTypeDescription
name?stringthe form name.
Returns

PersistedForm | Promise<PersistedForm>

the object or Promise with the form.


language

Optional language: string

The language of form.


slotWrapper

Optional slotWrapper: ComponentType<any>

The React component that wraps a template slot.


view

view: View

All the metadata of the components of the form viewer.


viewMode

Optional viewMode: ViewMode

Display resolution type.