FormattingSpecProvider Interface @beta

Minimal contract required by FormatSpecHandle to look up specs and subscribe to reloads. Implemented by QuantityFormatter in @itwin/core-frontend.

Methods

Name Description
formatQuantity(magnitude: number, formatSpec: FormatterSpec): string Format a numeric value using the given formatter spec.  
getSpecsByNameAndUnit(args: FormattingSpecArgs): undefined | FormattingSpecEntry Look up a formatting spec entry by KoQ name and persistence unit.  

Properties

Name Type Description
onFormattingReady Readonly BeUnorderedUiEvent<void> Event raised after the provider has finished reloading its caches.  

Defined in

Last Updated: 18 April, 2026