Last active
August 11, 2021 21:48
-
-
Save lukaszhanusik/83f4d4719a6443b6ad0a01bbdca96fd7 to your computer and use it in GitHub Desktop.
LWC Scope Notifications Receipies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- warning --> | |
<c-base-scoped-notification if:true={salesforceMergeFields} | |
variant="warning" | |
has-round-borders | |
heading={labels.templatePreviewSalesforceMergeFieldsNoticeHeading} | |
details={labels.templatePreviewSalesforceMergeFieldsNotice}> | |
</c-base-scoped-notification> | |
<!-- info --> | |
<c-base-scoped-notification if:false={templateMergeFields} | |
variant="info" | |
has-round-borders | |
heading={labels.templatePreviewNoMergeFieldsNoticeHeading} | |
details={labels.templatePreviewNoMergeFieldsNotice}> | |
</c-base-scoped-notification> | |
<!-- with slot --> | |
<c-base-scoped-notification if:true={templateMergeFieldErrors} | |
variant="error" | |
has-round-borders | |
is-expanded | |
> | |
<c-base-error-message | |
variant="inline" | |
friendly-message={labels.templatePreviewError} | |
errors={templateMergeFieldErrors}> | |
</c-base-error-message> | |
</c-base-scoped-notification> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment