Skip to main content

Introducing Workflow Engine, try for FREE workflowengine.io.

Class: FormViewerPropsStore

Represents the props passed to the FormViewer Store. Internal use only.

Constructors

new FormViewerPropsStore()

new FormViewerPropsStore(formViewerProps?): FormViewerPropsStore

Constructs a new FormViewerPropsStore from the given FormViewerProps.

Parameters

formViewerProps?: FormViewerProps

the FormViewer props.

Returns

FormViewerPropsStore

the FormViewerPropsStore.

Properties

actions?

optional actions: ActionValues

Custom actions for the form viewer.


errorWrapper?

optional errorWrapper: ComponentType<ErrorWrapperProps>

The default error wrapper used when errorType is not specified in the form.


formValidators?

optional formValidators: FormValidators

The set of functions that validate the form data.


initialData

initialData: Record<string, unknown> = {}

The initial form data.


localizer?

optional localizer: ComponentLocalizer

The function to localize the properties of a component.


propsLanguage?

optional propsLanguage: Language

The full language code passed in the FormViewer properties.


validators?

optional validators: Partial<Record<keyof SchemaTypeMap, CustomValidationRules>>

The set of metadata of validation rules, grouped by the type of value being validated.


view

view: View

The metadata of the form viewer components.

Methods

applyProps()

applyProps(formViewerProps): void

Applies the given FormViewerProps.

Parameters

formViewerProps: FormViewerProps

the properties to apply.

Returns

void


clone()

clone(): FormViewerPropsStore

Returns the clone of the FormViewerPropsStore object.

Returns

FormViewerPropsStore

the clone of the FormViewerPropsStore object.