Properties
Name | Attribute | Type | Description |
---|---|---|---|
type | type |
|
The type of toast to display. |
header | header |
|
The toast title. |
detail | detail |
|
The toast detail. |
closeable | closeable |
|
If true, will display a close button that fires a close-click event when clicked. |
current |
|
Global singleton ToastStack used for showing a toast, either by adding to, or replacing. Use Toast.show function to add or replace toasts to this instance. |
|
dir | dir |
|
Used to set the base direction of text for display |
lang | lang |
|
Used to identify the language of text content on the web |
Static Functions
Name | Parameters | Returns | Description |
---|---|---|---|
configure |
|
|
Configure the global singleton ToastStack used for showing a toast, either by adding to, or replacing. Use Toast.show function to add or replace toasts to this instance. |
show |
|
|
Show a toast message. |
Events
Name | Type | Description |
---|---|---|
close-click |
|
Dispatched when the close button is clicked when closeable . |
Slots
Name | Description |
---|---|
|
Used to define content that is displayed while async rendering is awaiting, or when renderLoading() is implicitly called |
|
Content to render before toast message area. |
|
Content to render inside the component message area. |
|
Content to render as the close button when closeable . |
Theme Variables
Name | Description |
---|---|
|
Theme primary color. |
|
Theme primary hover color. |
|
Theme primary active color. |
|
Theme accent color. |
|
Theme accent hover color. |
|
Theme accent active color. |
|
Theme background color. |
|
Theme background hover color. |
|
Theme background active color. |
|
Theme font color. |
|
Theme disabled border color. |
|
Theme disabled background color. |
|
Theme disabled background color. |
|
Theme error border color. |
|
Theme hint font color. |
|
Theme inactive color. |
|
Theme inactive color. |
|
Theme font family. |
|
Theme font size. |
|
Theme font weight. |
|
Theme border radius. |
|
Theme border width. |
|
Theme box shadow. |
Component Variables
Name | Description |
---|---|
|
Min Width. |
|
Max Width. |
|
Width. |
|
The z-index. |
|
Border width. |
|
Border radius. |
|
Box shadow. |
|
Container padding. |
|
Horizontal spacing between icon from type and content. |
|
Symmetrical size of icon from type . |
|
Font family for header. |
|
Font size for header. |
|
Font weight for header. |
|
Line height for header. |
|
Font family for detail. |
|
Font size for detail. |
|
Font weight for detail. |
|
Line height for detail. |
|
Vertical space between detail and header. |
|
The default background applied when no type is set. |
|
The default font color applied when no type is set. |
|
Border color. • |
|
The background applied when type is set to success . |
|
The font color applied when type is set to success . |
|
The border color applied when type is set to success . |
|
The icon color applied when type is set to success . |
|
The background applied when type is set to warning . |
|
The font color applied when type is set to warning . |
|
The border color applied when type is set to warning . |
|
The icon color applied when type is set to warning . |
|
The background applied when type is set to error . |
|
The font color applied when type is set to error . |
|
The border color applied when type is set to error . |
|
The icon color applied when type is set to error . |
|
The background applied when type is set to info . |
|
The font color applied when type is set to info . |
|
The border color applied when type is set to info . |
|
The icon color applied when type is set to info . |
|
Padding applied to close button when closeable . |
|
Symmetrical size applied to close button when closeable . |