Numeric
The Numeric shows an input box to collect a numer feedback.
Example#

Synopsis#
displayStrategy
[
{
"feedbackKey": "sizeOfSomething",
"caption": "Size",
"type": "Numeric",
"options": {
"label": "Enter a positive integer",
"minimum": 1,
"multipleOf": 1
}
}
]Options#
All options are optional.
label: string: If set, shows a caption above the input control.minimum: number: Ensures input >= minimum.exclusiveMinimum: number: Ensures input > minimum.maximum: number: Ensures input <= maximum.exclusiveMaximum: number: Ensures input < maximum.multipleOf: number: Ensures the input is a multiple of this. Internally, we just check "input % multipleOf === 0", so this does not work correctly with floating-point numbers due to rounding errors.
Note#
This can be used at the "root" level of displayStrategy, but it is also suitable as the feedbackListener of the LesionCandidates display.