@friendlycaptcha/sdk > WidgetHandle > reset
WidgetHandle.reset() method
Reset the widget, removing any progress.
Optional argument: an object with the name of the trigger that caused the reset. You would usually keep this empty. This is the trigger field in the frc:widget.reset event, which defaults to root.
Signature:
reset(opts?: WidgetResetOptions): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
opts |
(Optional) |
Returns:
void