Open reubenberghan opened 5 years ago
This number field expects numbers. As user input in this field, it should not allow entering anything leading to non-number.
Acceptance Criteria:
If the entered key is permitted, the state will change: the key will be added to the text string.
The new string will be validated by isNumber, if pass, nothing happens. If not, a visual warning should indicate the string is not a number.
The new string will compare with Max and Min set values. If over the boundary, a visual warning should indicate the Max or Min value that is violated.
The visual warning is configurable, for example, changes the background colour (to red) or a flag displaying ‘not a valid number’
Maximum Decimal places should be configurable as non-negative integers to indicate integer or float. If Maximum Decimal places set to 0, the dot is removed from the permitted list.
The number field's appearance (font size, style etc) can be customized.
Max and min values are configurable to set boundaries. If min is larger or equal to 0, then the negative sign is removed from the permitted list.
Allow the user to set up the default value of the number field.
States:
To Do List:
[This Week]
Max and min values are configurable to set boundaries. If min is larger or equal to 0, then the negative sign is removed from the permitted list.
Maximum Decimal places should be configurable as non-negative integers to indicate integer or float. If Maximum Decimal places set to 0, the dot is removed from the permitted list.
~The number field's appearance (font size, style etc) can be customized.~
[Next Week]
The new string will be validated by isNumber, if pass, nothing happens. If not, a visual warning should indicate the string is not a number.
The new string will compare with Max and Min set values. If over the boundary, a visual warning should indicate the Max or Min value that is violated.
The visual warning is configurable, for example, changes the background colour (to red) or a flag displaying ‘not a valid number’
This field expects numbers. It should be configurable to permit one or more of the following:
You should be able to set min and/or max values. You might want to allow configuration of the number of decimal places.