ToastConfig
projects/ui/feedback/toast/toast.service.ts
Referenced by#
Import#
import { ToastConfig } from '@cngx/ui/feedback'
Description#
Configuration for a single toast.
Index#
Instance Properties#
TypeCustom component rendered as the toast body.
Replaces the default message/description text.
title is still rendered above the component if set.
A11y: avoid focusable elements (<a>, <button>, <input>) inside
the component - they are unreachable inside a role="status" live region.
TemplateRefTemplate rendered as the toast body - takes precedence over content
and message. CngxToast passes its projected content through here.
A11y: same rule as content - avoid focusable elements inside.
Secondary description text - renders below title.
Falls back to message when title is set but description is not.
Ignored when title is not set.
number | "persistent"Auto-dismiss duration in ms, or 'persistent' for manual dismiss only.