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

userCancel

The user canceled the process.

Details

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

Event: userCancel

Type: FacephiSelphiWidgetCustomEvent<UserCancelEvent> | CustomEvent<UserCancelEvent>

Syntax

selphi.addEventListener('userCancel', onUserCancel);

Received object

The useful payload is of type SelphiUserCancelDetail 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