Toast
LmnToastComponent
import {LmnToastComponent } from "@elemental/ui";
Decorators: |
|
Selectors: |
|
Implements: |
|
Properties
Name | Type | Description |
---|---|---|
activateAction r |
| Emits when the toast's action is activated |
close | () => Promise<void> | Closes the toast element by playing the animation and emitting the closeToast event. |
closeTimeout r |
| Timeout for the toast to close. In seconds |
closeToast r |
| Emits when the toast is closed. |
content r |
| Content of the toast. |
nativeElement r | HTMLElement | |
negative r |
| Whether the toast is negative. |
persistency r |
| Whether the toast should be persistent or timed. |
position r |
| Position of the toast. |
type r |
| Type of the toast. |
Accessors
get id |
---|
The unique identifier of the toast. |
Presentation
|
Type
|
Methods
addTranslationAnimationFromOutside() | |||||||||
---|---|---|---|---|---|---|---|---|---|
Adds a translation animation to the native element. | |||||||||
Presentation
| |||||||||
Parameters
Returnsvoid |
LmnToastService
import {LmnToastService } from "@elemental/ui";
Decorators: |
|
Implements: |
|
Accessors
set defaultConfiguration |
---|
Setter method for the default configuration of the toast. |
Presentation
|
Type |
set maxNumberOfToasts |
---|
Setter method for the max number of toast. |
Presentation
|
Type
|
set parent |
---|
Setter method for the parent element of the toast containers. |
Presentation
|
Type
|
Methods
showToast() | ||||||
---|---|---|---|---|---|---|
Show the toast notification. | ||||||
Presentation
| ||||||
Parameters
Returnsvoid |