feat(widget-number): add range validation (#2049)

This commit is contained in:
Luis Correia
2019-02-08 20:01:08 +00:00
committed by Shawn Erquhart
parent 2d1d1c13df
commit dc44caca20
4 changed files with 56 additions and 0 deletions

View File

@ -13,6 +13,7 @@ The number widget uses an HTML number input, saving the value as a string, integ
- `valueType`: accepts `int` or `float`; any other value results in saving as a string
- `min`: accepts a number for minimum value accepted; unset by default
- `max`: accepts a number for maximum value accepted; unset by default
- `step`: accepts a number for stepping up/down values in the input; 1 by default
- **Example:**
```yaml
- label: "Puppy Count"
@ -22,4 +23,5 @@ The number widget uses an HTML number input, saving the value as a string, integ
valueType: "int"
min: 1
max: 101
step: 2
```