Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zero documentation on hundreds separator for currencies #258

Closed
wwwhatley opened this issue Oct 11, 2019 · 2 comments
Closed

Zero documentation on hundreds separator for currencies #258

wwwhatley opened this issue Oct 11, 2019 · 2 comments

Comments

@wwwhatley
Copy link

Looking for a simple $2.50 ... or something similar--I've been unable to locate any documentation or examples of this implemented...

@sem4phor
Copy link

sem4phor commented Oct 14, 2019

You can accomplish this easily with combining pattern and number mask.

{
  // pattern mask -> https://imask.js.org/guide.html#pattern
  mask: '$ num ',
    blocks: {
      num: {
        // number mask -> https://imask.js.org/guide.html#number
        mask: Number,
        scale: 2
      }
    }
 }

For trailing Currency-Sign I had to invoke the dynamic masks feature, too. But for your use case you are fine with above solution.

@uNmAnNeR
Copy link
Owner

closing this in favor of #170

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants