Components
Approval comments dialog
Tag: <we-approval-comments-modal>
Standard module: we_approval_comments_modal
Collects a comment and confirmation for an approval action. The labels can be changed by the caller.
Features
- Caller controls heading, message, and confirmation label.
- Returns the user’s confirmation and comment through the modal result.
Public parameters
| JavaScript property | HTML attribute | Type | Initial value | Purpose |
|---|---|---|---|---|
headerText |
header-text |
String | 'Submit for Approval' |
Heading shown in the dialog. |
bodyText |
body-text |
String | 'Add comments for this approval action.' |
Message shown in the dialog. |
confirmLabel |
confirm-label |
String | 'Submit' |
confirm 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_approval_comments_modal/WebComponent/WeApprovalCommentsModal.js.