Class: Number

XV. Number

An input control for validating and formatting string input that represent a number.
The superkind of XV.NumberWidget.

new Number()

Source:

Extends

  • XV.Input

Methods

decrease()

Decreases the value of the input field by an increment of one until the value of 0.
Source:

increase()

Increases the value of the input field by an increment of one at at maximum of the published maximum value.
Source:

setSliderValue()

Set the slider value equal to the value of the input field.
Source:

setValue()

Source:
To Do:
  • Document the setValue method.

setValue()

Inherit setValue from NumberWidget and set slider with value.
Source:

sliderChanged()

Set the input value equal to the value of the slider field.
Source:

validate(Number)

Determines whether the user input is numeric. Validates value, whether set programatically or via user input. Gracefully handles commas, periods, etc per the set culture using Globalize.
Parameters:
Name Type Description
Number String (string) to be validated.
Source:
Returns:
The value if it is valid, otherwise false.

valueChanged()

Source:
To Do:
  • Document the valueChanged method.