API: Primitives
ToastContainerComponent
Component reference for ToastContainerComponent with the selector qz-toast-container.
Overview
- Kind: Component
- Source: packages/primitives/src/toast/toast-container.component.ts:112
Selector
qz-toast-container
Properties
| Name | Type | Description |
|---|---|---|
readonly positions |
ToastPosition[] |
Public methods
onAction
onAction(toast: { id: string; }, action: { dismiss?: boolean; }): void
| Parameter | Type | Optional | Description |
|---|---|---|---|
toast |
{ id: string } |
||
action |
{ dismiss?: boolean } |
calculateProgress
calculateProgress(toast: { duration: number; remainingTime: number; }): number
| Parameter | Type | Optional | Description |
|---|---|---|---|
toast |
{ duration: number; remainingTime: number } |