Skip to main content
cngx-src documentation

CngxStatCardConfig

Interface

projects/ui/stat-card/config/stat-card.config.ts

Import#

import { CngxStatCardConfig } from '@cngx/ui/stat-card'

Description#

App-wide cascade for the stat-card's ARIA/message strings and its default loading treatment.

Resolution priority (high -> low):

  1. Per-instance Input binding (e.g. [errorText], [loadingTreatment]).
  2. provideStatCardConfigAt(...) in a parent component's viewProviders.
  3. provideStatCardConfig(...) at the application root.
  4. Library defaults (English; merged in via CNGX_STAT_CARD_DEFAULTS).

Every key is optional - partial overrides deep-merge with the library defaults, so consumers declare only the keys they want to override.

Index#

Instance Properties#

ariaLabels#literal type
ReadonlyOptional

String fallbacks for the tile's non-content states. Per-instance [busyLabel] / [errorText] / [staleText] bindings still win.

loadingTreatment#CngxLoadingTreatment
ReadonlyOptional

App-wide default loading treatment. Per-instance [loadingTreatment] still wins; this only moves the cascade default. A flat top-level scalar, not a nested sub-tree.