numberInputConfig
Examples
kind: NumberInput
label: My Label
value: 123 # OPTIONAL
unit: m3 # OPTIONAL
placeholder: Enter volume # OPTIONAL
min: 10 # OPTIONAL
max: 100 # OPTIONAL
disableWhen: # OPTIONAL
kind: Equal
control: my-other-control1
value: 1
hideWhen: # OPTIONAL
kind: Falsy
control: my-other-control2
Object properties
Name |
Type |
Required |
kind |
Constant: NumberInput |
yes |
label |
string |
yes |
value |
number |
no |
unit |
string |
no |
placeholder |
string |
no |
min |
number |
no |
max |
number |
no |
disableWhen |
One of |
no |
hideWhen |
One of |
no |
- Object with the following properties:
kind
(required): Constant NumberInput
- NumberInput is used to input a number
label
(required): string
- The label of the number input
value
(optional): number
- Optionally define the value of the number input
unit
(optional): string
- Optionally show a unit behind the number input
placeholder
(optional): string
- Optionally display a placeholder when the value is empty
min
(optional): number
- Optionally set the lower bound of the number
max
(optional): number
- Optionally set the upper bound of the number
disableWhen
(optional):
- Disable this control based on another control’s value
- One of the following types:
hideWhen
(optional):
- Hide this control based on another control’s value
- One of the following types: