Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 1.27 KB

File metadata and controls

20 lines (16 loc) · 1.27 KB
id Format.useCurrencyAccountingStyle
type Boolean
default true

shortDescription

Specifies whether to apply the accounting style to formatted numbers of the currency type.


The accounting style adds parentheses to negative numbers instead of the minus sign. To disable the accounting style in the component and display formatted numbers of the currency type with the minus sign, set this property to false.

format({
    type: "currency",
    useCurrencyAccountingStyle: false 
});

If you do not specify this property, the defaultUseCurrencyAccountingStyle global configuration setting is in effect. The useCurrencyAccountingStyle property has priority over the global setting.

How to Override the defaultUseCurrencyAccountingStyle