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

Add Number Input (validation) #849

Open
wants to merge 7 commits into
base: 2.1.x
Choose a base branch
from

Conversation

Nico-DF
Copy link

@Nico-DF Nico-DF commented Aug 7, 2023

Adding a new type of input: NumberInput

It defaults to Integer and is basically a StringInput with a validation (similar to ConfirmInput)

  • You can specify any number class
  • Accept any format recognized by java from string (.5; 1.6e-3;...)
  • Can be required (non-null)

component-number-input-1

component-flow-showcase-1

image

Nicola Di Falco and others added 3 commits August 8, 2023 09:59
@kieronedwards
Copy link

kieronedwards commented May 2, 2024

@jvalkeal this looks like a good addition - any reason why it has not been merged ? Or is there a way we can add custom input handlers

Copy link

@huyuanxin huyuanxin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks great, could you please merge this pr? @jvalkeal

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

Successfully merging this pull request may close these issues.

3 participants