Skip to main content
cngx-src documentation

BannerConfig

Interface

projects/ui/feedback/banner/banner.service.ts

Referenced by#

Import#

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

Description#

Configuration for a system-level banner.

Index#

Instance Properties#

action#literal type
Optional

Action button. If handler returns a Promise, the button shows aria-busy and is disabled until resolved. On error, the banner stays open.

dismissible#boolean
Optional

Show a dismiss button. Default true.

Required dedup key - only one banner per id. show() with existing id calls update().

message#string

Banner message text (required).

Optional

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