Number component
The number component is used for number inputs. Its
features include the input number range, the step gradient, the display effects, etc.
Code example
API
Number component template
Methods
Method | Description | Version |
setValue(value: number) | Set the value. If the value is not in the specified range and step, it will be automatically formatted. Calling this method won't trigger the change event. | 7.1.0 |
getValue(): number | Get the current value | 7.1.0 |
Events
Name | Description | Sample | Version |
change | Triggered when the user enters a number and blurs focus | number.on('change', (newValue, oldValue) => void) | 7.1.0 |