osrec/currencyFormatter.js

Setting hidden symbol when format currency

Closed this issue · 1 comments

In some cases user don't want show symbol base on currency but I can't found anything setting for that. I saw you get default value on defaultSymbol if user don't setting symbol on here

symbol = (p.symbol || symbols[currency]) || currency;

osrec commented

Fixed in version 2.2.0. You can now do either of the following to remove the symbol

OSREC.CurrencyFormatter.format(123456, { currency: 'USD', symbol: '' }) 

or

OSREC.CurrencyFormatter.format(123456, { currency: 'USD', symbol: null })