MutableFormatsProvider Interface

This interface is implemented by a class that would provide and allow creating formats for use in formatting quantities.

Extends

Methods

Name Description
addFormat(name: string, format: FormatDefinition): Promise<void> Adds a new format or updates an existing format associated with the specified name.  
removeFormat(name: string): Promise<void> Removes the format associated with the specified name.  

Inherited methods

Name Inherited from Description
getFormat(name: string): Promise<undefined | FormatDefinition> Inherited FormatsProvider  

Inherited properties

Name Type Inherited from Description
onFormatsChanged Inherited BeEvent<(args: FormatsChangedArgs) => void> FormatsProvider Fired when formats are added, removed, or changed.

Defined in

Last Updated: 30 August, 2025