You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
In our project, we use the TextField EDS component to select the number of iterations for an algorithm. This should only be a positive number >= 1. Right now we have to do validation on the backend that the number is >= 1. It would be nice to have this validation directly in the TextField component
Describe the solution you'd like
Adding more options for the value prop in TextField:
For example
positiveNumber
strictlyPositiveNumber
Describe alternatives you've considered
Alternative: do number validation on the backend Additional context
The text was updated successfully, but these errors were encountered:
KristianKjerstad
changed the title
Adding more alternatives for "value" in the TextField component
Adding more alternatives for "value" prop in the TextField component
Sep 16, 2022
We currently have a big change internally on streamlining how we handle our inputs coming up! #2336 The InputWrapper (as its called now) was made for internal use, but we might expose it publicly or have an easier way of implementing some similar feature like this.
We'll have a look on how validation and such as this might be solved when we land our feet on the InputWrapper
Is your feature request related to a problem? Please describe.
In our project, we use the TextField EDS component to select the number of iterations for an algorithm. This should only be a positive number >= 1. Right now we have to do validation on the backend that the number is >= 1. It would be nice to have this validation directly in the TextField component
Describe the solution you'd like
Adding more options for the value prop in TextField:
For example
Describe alternatives you've considered
Alternative: do number validation on the backend
Additional context
The text was updated successfully, but these errors were encountered: