For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

userCancel

The user canceled the process.

Details

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): Description of the cancellation.

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

Description

Allows you to respond to voluntary cancellation.


Example

Last updated