Skip to main content
cngx-src documentation

AlertConfig

Interface

projects/ui/feedback/alert/alerter.service.ts

Referenced by#

Import#

import { AlertConfig } from '@cngx/ui/feedback'

Description#

Configuration for a programmatic alert.

Index#

Instance Properties#

dismissible#boolean
Optional

Show a dismiss button. Default true.

duration#number
Optional

Auto-dismiss duration in ms. Only applies when persistent is false.

message#string

Alert message text (required).

persistent#boolean
Optional

Whether the alert persists until explicitly dismissed. Default true.

scope#string
Optional

Scope key - only shown in stacks with matching scope.

Optional

Visual severity - determines icon, color, and ARIA role.

title#string
Optional

Optional bold title above the message.