Maximum Input Value¶
This option only takes a numerical value which is in between a fixed lower and upper value.
Tag¶
"type": "input-max"
Values¶
The input-max type supports the following values:
min
¶
The lower bound for the value.
max
¶
The upper bound for the value.
placeholder
¶
A text which will be displayed in the input field before a value is entered.
placeholder_values
¶
If the min and max values shall be displayed in the placeholder text. Defaults to false and can be omitted.
Argument Passed to the Device¶
This section describes the value (VALUE_FROM_THE_USER
) which will get passed to the device.
Read the Parameters section of the device.execute method for the general structure of the argument.
The value will be the number entered formatted as string.
Example¶
This example shows how this type of option will look in the webapp.
Option configuration¶
{
"name": "Enter your grade",
"type": "input-max",
"id": "input-max-1",
"values": {
"min": 0,
"max": 6,
"placeholder": "Enter a number",
"placeholder_values": true
}
}
Result¶
passed value:
{
"id": "input-max-1",
"value": "<VALUE_ENTERED>"
}
VALUE_ENTERED will be the number which is entered in the application by the user - for example “4”