Skip to main content
Version: v2

@friendlycaptcha/sdk > FRCWidgetStateChangeEventData

FRCWidgetStateChangeEventData interface

Payload of the "frc:widget.statechange" event.

Signature:

export interface FRCWidgetStateChangeEventData 

Properties

PropertyModifiersTypeDescription
error?WidgetErrorData(Optional) The error that caused the state change, if any. Undefined if state is not equal to "error".
idstringThe widget ID that the event originated from.
nametypeof FRCWidgetStateChangeEventName"frc:widget.statechange"
responsestringThe current frc-captcha-response value.
stateWidgetStateThe new state of the widget.