Skip to main content

Introducing Workflow Engine, try for FREE workflowengine.io.

Class: ActionEventArgs

@react-form-builder/core.ActionEventArgs

Arguments passed to the event handler.

Constructors

constructor

new ActionEventArgs(type, sender, store, args, state)

Creates arguments for the event handler.

Parameters

NameTypeDescription
typestringthe event type.
senderComponentDatathe component that triggered the event.
storeStorethe form viewer settings.
argsany[]the event arguments.
stateComponentStatethe ComponentState instance.

Properties

args

Readonly args: any[]

the event arguments.


renderedProps

renderedProps: Record<string, any>

The component properties that were used to render the sender component.


sender

Readonly sender: ComponentData

the component that triggered the event.


store

Readonly store: Store

the form viewer settings.


type

Readonly type: string

the event type.

Accessors

data

get data(): Record<string, unknown>

Returns

Record<string, unknown>

the object for reading and changing form data.


event

get event(): null | SyntheticEvent<Element, Event>

Returns

null | SyntheticEvent<Element, Event>

the event handled by the event handler.


value

get value(): any

Returns

any

the first element of the event argument array, which is treated as a value.

Methods

setUserDefinedProps

setUserDefinedProps(props?): void

Sets user-defined properties for the React component that override other properties of the component.

Parameters

NameTypeDescription
props?Record<string, any>the component properties.

Returns

void