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

how to format value only for display? #72

Open
nekooee opened this issue Dec 3, 2022 · 5 comments
Open

how to format value only for display? #72

nekooee opened this issue Dec 3, 2022 · 5 comments

Comments

@nekooee
Copy link

nekooee commented Dec 3, 2022

how to InputBox bind to unformatted value but display formatted value?

@nekooee
Copy link
Author

nekooee commented Dec 4, 2022

please guide me. I need to add up the numbers. But when they are formatted as money, there is no possibility of collecting.

@jonathanpmartins
Copy link
Owner

jonathanpmartins commented Dec 17, 2022

What exactly are you trying to achieve?
Does the internal mask/unmask functions help you? https://github.com/jonathanpmartins/v-money3#use-the-internal-mask-functions

@nekooee
Copy link
Author

nekooee commented Dec 17, 2022

Sorry for the late reply. I was in vacations! What exactly are you trying to achieve? Does the internal mask/unmask functions help you? https://github.com/jonathanpmartins/v-money3#use-the-internal-mask-functions

Thank you. I need to show the formatted number but save it in the database as unformatted. also when sum numbers I use them without formatted.
So it's hard to unformat it first for anything. It is much better to bind the unformatted number directly.

@jonathanpmartins
Copy link
Owner

Did you solved your problem? Did you need help? Can I close this issue?

@nekooee
Copy link
Author

nekooee commented Mar 18, 2023

Did you solved your problem? Did you need help? Can I close this issue?

I had to make a component that shows the number in a formatted, but the binding number is the same as the unformatted number.
But with the features of the package itself, this feature is not available.
My problem was solved with the component I made. Thankful

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

2 participants