For the managed package runtime, this page contains the Alert LWC ReadMe for each Vlocity release.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
Vlocity Insurance and Health Spring '20
The Alert Lightning Web Component displays an SLDS or Newport alert.
Available c-alert Attributes
|
Attribute |
Value |
Type |
Required |
Description |
|---|---|---|---|---|
|
theme |
slds, nds (Default: slds) |
string |
Specifies the theme to use. |
|
|
message |
string |
Pass simple message into the component. For messages containing markup, use the default slot. If slotted content is passed, |
||
|
variation |
info, warning, error, offline (Default: info) |
string |
An enum value representing the components style variation. |
|
|
dismissible |
true, false (Default: false) |
boolean |
If true, the alert can be dismissed by user. |
|
|
icon |
string |
The icon name in |
Example c-alert* Component
<c-alert theme="slds"
variation="info|warning|error|offline"
icon="utility:trail"
message="This is a simple message.">
<span>For more <em>complex</em> messaging, use the default slot.
<a href="https://lwc.dev/guide/composition#pass-markup-into-slots" target="_blank">Using slots.</a>
</span>
</c-alert>
Available Custom Labels
|
Label |
ApiName |
Description |
|---|---|---|
|
Close |
cmpClose |
Assistive text for the icon to close or dismiss the alert. |
Vlocity Insurance and Health Winter '20 and Vlocity CME Spring '20
The Alert Lightning Web Component displays an SLDS or Newport alert.
Available c-alert Attributes
|
Attribute |
Value |
Type |
Required |
Description |
|---|---|---|---|---|
|
theme |
slds, nds (Default: slds) |
string |
Specifies the theme to use. |
|
|
message |
string |
Pass simple message into the component. For messages containing markup, use the default slot. If slotted content is passed, |
||
|
variation |
info, warning, error, offline (Default: info) |
string |
An enum value representing the components style variation. |
|
|
dismissible |
true, false (Default: false) |
boolean |
If true, the alert is can be dismissed by user. |
|
|
icon |
string |
The icon name in |
Example c-alert Component
<c-alert theme="slds"
variation="info|warning|error|offline"
icon="utility:trail"
message="This is a simple message.">
<span>For more <em>complex</em> messaging, use the default slot.
<a href="https://lwc.dev/guide/composition#pass-markup-into-slots" target="_blank">Using slots.</a>
</span>
</c-alert>