Class: ActionEventArgs
Arguments passed to the event handler.
Constructors
Constructor
new ActionEventArgs(
type,sender,store,args,renderedProps,cellInfo?):ActionEventArgs
Creates arguments for the event handler.
Parameters
type
string
the event type.
sender
the component that triggered the event.
store
the form viewer settings.
args
any[]
the event arguments.
renderedProps
Record<string, any>
the component properties that were used to render the sender component.
cellInfo?
the information about the current table cell.
Returns
ActionEventArgs
Properties
args
readonlyargs:any[]
the event arguments.
cellInfo?
readonlyoptionalcellInfo:CellInfo
the information about the current table cell.
index?
readonlyoptionalindex:number
The index of the component in the array, if the component is in the array.
renderedProps
readonlyrenderedProps:Record<string,any>
the component properties that were used to render the sender component.
sender
readonlysender:ComponentData
the component that triggered the event.
store
readonlystore:Store
the form viewer settings.
type
readonlytype:string
the event type.
Accessors
data
Get Signature
get data():
Record<string,unknown>
Returns
Record<string, unknown>
the object for reading and changing form data.
event
Get Signature
get event():
null|SyntheticEvent<Element,Event>
Returns
null | SyntheticEvent<Element, Event>
the event handled by the event handler.
parentData
Get Signature
get parentData():
undefined|Record<string,unknown>
Returns
undefined | Record<string, unknown>
the object to read and modify parent data (available for array elements).
rootData
Get Signature
get rootData():
Record<string,unknown>
Returns
Record<string, unknown>
the object to read and modify root form data.
userDefinedProps
Get Signature
get userDefinedProps():
Record<string,any>
Returns
Record<string, any>
user-defined properties for the React component that override other properties of the component.
value
Get Signature
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
props?
Record<string, any>
the component properties.
Returns
void