Open izshreyansh opened 3 years ago
Great idea, I thought about that today but I'm using Tailwind.
I was looking today for this exact option (I'm trying to format input boxes so I only need the symbol, not the currency amount. A PR would be much appreciated!
function getCurrencySymbol(): ?string
{
return currency()->find(currency()->getUserCurrency())['symbol'];
}
I'm planning to send a PR that will return currency symbol.
Possible client code might look like this:
currency()->getCurrencySymbol()
which outputs one of the relevant currency symbol like:$
,€
.I came across this idea while using bootstrap form method to place a prepend on input.