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

Request - NumeralFieldFormatter should extend a NumberField vaadin component #74

Open
Alexenon opened this issue Aug 15, 2024 · 0 comments

Comments

@Alexenon
Copy link

I found confusing that NumeralFieldFormatter cannot extend a NumberField vaadin component.
I would like to be able to extend a number field using the NumeralFieldFormatter.
It's annoying to parse always the values from String to Double and vice-versa 😢

NumberField priceField = new NumberField("Price");

Please add such functionality

new NumeralFieldFormatter.Builder()
        .delimiter(",")
        .decimalMark(".")
        .decimalScale(2)
        .build()
        .extend(priceField); // Currently, it's not possible to extend a number field
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

1 participant