ToastService
Defined in: services/toast/toast.service.ts:20
Service responsible for displaying, managing, and closing toasts.
Since
1.2.1
Author
Simon Kovtyk
Constructors
Constructor
ts
new ToastService(): ToastService;Defined in: services/toast/toast.service.ts:30
Returns
ToastService
Methods
close()
ts
close(toastId): void;Defined in: services/toast/toast.service.ts:54
Close a Toast
Parameters
| Parameter | Type | Description |
|---|---|---|
toastId | string | the id of the toast (is a automatically assigned uuid) |
Returns
void
show()
ts
show(toast): string;Defined in: services/toast/toast.service.ts:41
Displays a toast
Parameters
| Parameter | Type | Description |
|---|---|---|
toast | UntypedToast | The toast data to show |
Returns
string
The assigned id of the toast
Remarks
Returns the assigned id of the toast