The InputNumber control allows users to enter and edit numbers. It has the following advantages over regular input elements:
You may refer to the demos which provides examples for these properties.
By default, InputNumber values are required, so you cannot delete the entire content of the control. If you want to delete all the content from the control and make it empty then set the isRequired property to false.
<input id="theNumber">
import * as input from '@grapecity/wijmo.input';
function init() {
// a regular input number
let theNumber = new input.InputNumber('#theNumber', {
min: 0,
max: 100,
step: 10,
placeholder: 'Your age (optional)'
});
}