amarkes / br-mask

MIT License
116 stars 56 forks source link

(Feature request) Currency symbol in money mask #13

Open eulerchavez opened 5 years ago

eulerchavez commented 5 years ago

Hi, is it possible add currency symbols in money mask (€,£,$,¢)?

Thanks for the project, is awesome.

Grettings

amarkes commented 5 years ago

our idea was to be just mask, is not to display symbol, but we support it so that it can modify the amount of decimal and to switch between point and vigular

Exemple

IngAjVillalon commented 5 years ago

Hello, first of all, excellent work with this package designed especially for ionic 4, you have my total admiration. I think that @eulerchavez have a good idea, maybe as a prefix, pass them as property in the masking directive, for example, prefix = '$ '. I support and vote for this idea, or if you explain to me a little about the module I can aim to help you achieve that characteristic.

FrutasLuna commented 5 years ago

The 2 are right! And I also add to the list of gratitude to you for having developed this package for Ionic 4. And I think the 2 are right and especially @IngAjVillalon's solution of passing the suffix & prefix strings as property in the directive would work fine.