Constructor
new VlocityDCToast()
Properties:
Name | Type | Description |
---|---|---|
title |
String | toast message title. |
message |
String | toast message content. |
styleType |
String | toast message style type. |
duration |
Number | duration in milliseconds for which the toast message will be displayed. |
Example
Sample Usage -
Include the component in your template simply by adding vlocity-dc-toast custom tag
<vlocity-dc-toast></vlocity-dc-toast>
| Attribute Name | Required |
|-------------------|---------------------------|
| title | required |
| message | required |
| styleType | required |
| duration | optional(default 2000 ms) |
KEY INFO -
events fired : none
events registered : none
Dependency - vlocity-dc-toast is an independent component and have no dependency on parent component.
| Parent Component | Expected Child Component |
|-----------------------|-----------------------------|
| none | none |
Extends
- LitElement
Members
(static, readonly) properties
Properties that will be available in the binding system
Properties:
Name | Type | Description |
---|---|---|
title |
String | toast message title |
message |
String | toast message content. |
styleType |
String | toast message style type. |
Methods
(static) connectedCallback()
Invoked when vlocity-dc-toast component is added to the document’s DOM.