For the complete documentation index, see llms.txt. This page is also available as Markdown.

userCancel

The user cancelled the process.

Details

It is emitted when the user closes or cancels the Widget.

Event: userCancel

Type: FacephiSelphidWidgetCustomEvent<UserCancelEvent> | CustomEvent<UserCancelEvent>

Syntax

selphid.addEventListener('userCancel', onUserCancel);

Received object

The useful payload is of type SelphidUserCancelDetail and is in event.detail.detail:

  • eventType (string): Type of event emitted.

  • message (string): Cancellation description.

  • advancedTracking (Uint8Array): Encoded advanced Tracking (optional).

Description

Allows reacting to voluntary cancellation.


Example

Last updated