interface ModBaseWidgetCallbacks {
    onComplete?: ((processToken) => void);
    onError?: (() => void);
    onNavigate?: ((location) => void);
}

Hierarchy (view full)

Properties

onComplete?: ((processToken) => void)

When the widget has finished executing, the onComplete event is triggered. This event indicates that the widget has completed successfully, not that the widget's check has returned positive results. If the results of the widget's check are to be provided, then they should be sent as the payload of a separate event.

Type declaration

    • (processToken): void
    • When the widget has finished executing, the onComplete event is triggered. This event indicates that the widget has completed successfully, not that the widget's check has returned positive results. If the results of the widget's check are to be provided, then they should be sent as the payload of a separate event.

      Parameters

      • processToken: string

      Returns void

onError?: (() => void)

The onError event is triggered when a technical error occurs, such as an inaccessible API server, an incorrect widget configuration, or any other unexpected error.

Type declaration

    • (): void
    • The onError event is triggered when a technical error occurs, such as an inaccessible API server, an incorrect widget configuration, or any other unexpected error.

      Returns void

onNavigate?: ((location) => void)

The onNavigate event is triggered when navigating to a different view. The event's payload is the route's path. For example, you can use this event to incorporate the widget's steps into your own stepper.

Type declaration

    • (location): void
    • The onNavigate event is triggered when navigating to a different view. The event's payload is the route's path. For example, you can use this event to incorporate the widget's steps into your own stepper.

      Parameters

      • location: string

      Returns void

Generated using TypeDoc