Skip to main content
cngx-src documentation

withStatCardAriaLabels

Functionui/stat-cardv0.1.0

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

Description#

Override the stat-card's string fallbacks - the busy announcement, the first-load error message, and the stale-data note. Per-instance [busyLabel] / [errorText] / [staleText] bindings still win.

Library defaults are English; this is the hook a localised app uses.

provideStatCardConfig(
  withStatCardAriaLabels({ busy: 'Lädt', errorFallback: 'Nicht verfügbar' }),
);

Signature#

withStatCardAriaLabels(labels: NonNullable)

Parameters#

@paramlabelsNonNullable

Returns#

CngxStatCardConfigFeature