feat(widget-number): add range validation (#2049)
This commit is contained in:
committed by
Shawn Erquhart
parent
2d1d1c13df
commit
dc44caca20
@ -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
|
||||
```
|
||||
|
Reference in New Issue
Block a user