codermarcos / simple-mask-money

💰 Simple mask money is a light, safe and typed package to format money!

Home Page:http://simple-mask-money.codermarcos.zone/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Maxlenght

dhyogo opened this issue · comments

Hi! Is it possible to use the maxlenght property?

Many thanks for your issue is very important to help improve our package. 😄 👍
No, at this time it is not possible to define formatting or conditions in values, but this is an excellent idea and can enter the roadmap, however see a more generic implementation than just max length.
In version 3 we have 2 callback methods beforFormat and afterFormat I believe we can implement a way to return a value in this callback that will set the new input value so that you have the freedom to implement what you need. Anyway this will be included in the next versions if you want to contribute more feel free to send your a pull request... Thanks ❤️