wirecardBrasil / awesome-mask

The awesome-mask runs with Vue.js and uses the vanilla-masker to make your form awesome with masks.
MIT License
165 stars 22 forks source link

Allow options to be passed through to vanilla-masker #39

Open kball opened 5 years ago

kball commented 5 years ago

There are a variety of configuration options available to both the toMoney and the toPattern methods in vanilla-masker that would be useful to expose. I'm thinking probably we simply extend the logic that looks at the value passed in, and if it is an object plucks off the value key as value and the rest as options.

I need this for a current client project so I will implement a fix and submit a PR.