Components
Confirmation dialog
Tag: <we-confirm-modal>
Standard module: we_confirm_modal
Reusable confirm/cancel modal with configurable heading, message, and button labels.
Features
- Caller can replace the heading, body, and both action labels.
- Returns a modal confirmation choice.
Public parameters
| JavaScript property | HTML attribute | Type | Initial value | Purpose |
|---|---|---|---|---|
headerText |
header-text |
String | 'Confirm Action' |
Heading shown in the dialog. |
bodyText |
body-text |
String | 'Are you sure you want to continue?' |
Message shown in the dialog. |
confirmLabel |
confirm-label |
String | 'Confirm' |
confirm label supplied by the caller. |
cancelLabel |
cancel-label |
String | 'Cancel' |
cancel label supplied by the caller. |
Public methods
No @apiFunction methods are declared.
Events
No directly constructed CustomEvent was found in this component source. Standard DOM events can still occur.
This is a modal component. Application code opens it through the modal class’s static open({ props }) method; see the component authoring guide.
Source: working/environment_modules/standard/we_confirm_modal/WebComponent/WeConfirmModal.js.