diff --git a/src/views/toast/ToastDemo.vue b/src/views/toast/ToastDemo.vue index 83f7a0810..6d282d945 100644 --- a/src/views/toast/ToastDemo.vue +++ b/src/views/toast/ToastDemo.vue @@ -50,10 +50,14 @@
A single message is represented by the Message interface in PrimeVue that defines various properties such as severity, + summary and detail. Messages are displayed by using the add method on the ref of the Toast instance.
+Name | +Type | +Default | +Description | +
---|---|---|---|
severity | +string | +null | +Severity of the message. | +
summary | +element | +null | +Summary content of the message. | +
detail | +element | +null | +Detail content of the message. | +
closable | +boolean | +true | +Whether the message can be closed manually using the close icon. | +
sticky | +element | +null | +When enabled, message is not removed automatically. | +
life | +number | +3000 | +Delay in milliseconds to close the message automatically. | +
There are four possible values for the severity of a message.
+ +Show method accepts either a single message or an array of messages.
+There are four positions available for the toast container defined by the position property that defaults to "topright". Other + valid values are "topleft", "bottomleft" and "bottomright" +
+removeAllGroups() method removes all messages from Toast.
+Name | +Type | +Default | +Description | +
---|---|---|---|
group | +string | +null | +??? | +
position | +string | +topright | +Position of the toast in viewport, valid values are "topright", "topleft", "bottomleft" and "bottomright". | +
Following is the list of structural style classes, for theming classes visit
Name | +Element | +
---|---|
p-toast | +Main container element. | +
p-toast-container | +Container of a message item. | +
p-toast-item | +Message element. | +
p-toast-icon-close | +Close icon of a message. | +
p-toast-image | +Severity icon. | +
p-toast-message | +Container of message texts. | +
p-toast-title | +Summary of the message. | +
None.
+