LinearGauge as NumberInput
In addition to the InputNumber control, you can use the LinearGauge to input numbers. The LinearGauge is similar to an HTML input range control, but with some improvements:
- The LinearGauge has a consistent look among browsers. Input range elements look different depending on the browser.
- The LinearGauge can be styled using CSS, and customized with a rich set of properties.
For example, here is an input range element that can be used to enter values between zero and 255:
50
Here is a LinearGauge control set for the same range. The isReadOnly property is set to false, so you can change the gauge value using the mouse or keyboard:
And here is another LinearGauge control with some styling applied:
And here is an equalizer-style group of vertical gauges used to edit several numbers: