@friendlycaptcha/sdk > FRCWidgetStateChangeEventData
FRCWidgetStateChangeEventData interface
Payload of the "frc:widget.statechange" event.
Signature:
export interface FRCWidgetStateChangeEventData
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
(Optional) The error that caused the state change, if any. Undefined if | |||
|
string |
The widget ID that the event originated from. | ||
|
(Optional) The WidgetMode returned from the API. Smart Mode intelligently chooses between One-click Mode ("interactive") and Zero-click Mode ("noninteractive"). The mode is configured in the Friendly Captcha dashboard. | |||
|
| |||
|
string |
The current | ||
|
The new state of the widget. |