Toast Lightning Web Component ReadMe (Managed Package)

For the managed package runtime, this page contains a Toast LWC ReadMe for each Vlocity release.

Managed Package app icon This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.

Vlocity Insurance and Health Winter '20 and Vlocity CME Spring '20

The Toast Lightning Web Component is a feedback and confirmation tool run after the user takes an action.

Available c-toast Attributes

Attribute

Value

Type

Required

Description

title

 

string

 

Adds a title to the toast component.

message

 

string

yes

Sets the message to display.

theme

slds, nds (Default: slds)

string

 

Sets the theme for the toat component.

fixed-width

 

string

 

Adds a fixed width to the toast container element.

styletype

info, warning, succeess, error (Default: info)

string

 

Sets the styling based on the type supported by the selected slds or nds theme.

duration

time in milliseconds

number

 

To automatically remove toast after specified time, set this attribute.

extraclass

 

string

 

Adds a class to the container element. To add multiple classes, use a space to separate each class, such as 'classone classtwo'.

Example c-toast Component

<c-toast
  title="Information"
  theme="nds"
  styletype="error"
  message="This is an info toast"
  duration="3000"
></c-toast>

Vlocity Insurance and Health Summer '19 and Vlocity CME Fall '19

The Toast Lightning Web Component is a feedback and confirmation tool run after the user takes an action.

Available c-toast Attributes

Attribute

Value

Type

Required

Description

title

 

string

 

Adds a title to the toast component.

message

 

string

yes

Sets the message to display.

theme

slds, nds (Default: slds)

string

 

Sets the theme for the toat component.

fixed-width

 

string

 

Adds a fixed width to the toast container element.

styletype

info, warning, succeess, error (Default: info)

string

 

Sets the styling based on the type supported by the selected slds or nds theme.

duration

time in milliseconds

number

 

To automatically remove toast after specified time, set this attribute.

extraclass

 

string

 

Adds a class to the container element. To add multiple classes, use a space to separate each class, such as `classone classtwo'.

Example c-toast Component

<c-toast
  title="Information"
  theme="nds"
  styletype="error"
  message="This is an info toast"
  duration="3000"
></c-toast>