-
-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(form): support range values for decimal and number validation
It was not possible to allow for an optional range check for the decimal or number validator. This was only supported for integer values. This PR now supports decimal and number validators to supply a range by making the check for a range value a separate range validator so it can be reused. adds 2 new validators maxValue and minValue accordingly displays the range values in the default error prompt as well if no prompt is given
- Loading branch information
Showing
1 changed file
with
43 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters