Skip to main content
cngx-src documentation

withStatCardLoadingTreatment

Functionui/stat-cardv0.1.0

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

Description#

Move the cascade default for what a tile renders while it loads. 'auto' (the library default) picks spinner vs skeleton from the latency the tile observed; 'spinner' and 'skeleton' pin it app-wide. Per-instance [loadingTreatment] still wins.

Signature#

withStatCardLoadingTreatment(treatment: CngxLoadingTreatment)

Parameters#

@paramtreatmentCngxLoadingTreatment

Returns#

CngxStatCardConfigFeature