Last updated
Last updated
The current number box value.
Type:
Default Value: 0
Specifies whether the UI component responds to user interaction.
Type:
Default Value: false
Specifies the value's display format and controls user input accordingly
Use Unicode Locale Data Markup Language (LDML) patterns to specify a custom format string. An LDML pattern consists of wildcard characters and characters displayed as is. The format property supports the following wildcard characters:
The examples below demonstrate the behavior of "#" and "0" in fractional numbers:
The examples below show different ways to apply percentage formatting to decimals. Use caution if your format string starts with a zero ('0'), because the formatted number may lose leading digits.
Specifies a precision for values of numeric or currency format types.
Specifies a text string used to annotate the editor's value.
Default Value: 'Input Numeric'
The maximum value accepted by the number box.
Default Value: undefined
The minimum value accepted by the number box.
Default Value: undefined
Specifies how much the UI component's value changes when using the spin buttons, Up/Down arrow keys, or mouse wheel.
Default Value: 1
Type:
Type:
Type:
Type:
Type:
0
A digit. Displays '0' if the formatted number does not have a digit in that position.
#
Up to 15 of leading digits, a single digit, or nothing. If this character goes first in the format string, it can match multiple leading digits (before the decimal point). Subsequent characters match a single digit. If the formatted number does not have a digit in the corresponding position, it displays nothing. For example, if you apply format "#0.#" to "123.45", the result is "123.4".
.
A decimal separator. Actual character depends on locale.
,
A group separator. Actual character depends on locale.
%
The percent sign. Multiplies the input value by 100.
;
Separates positive and negative format patterns. For example, the "#0.##;(#0.##)" format displays a positive number according to the pattern before the semicolon (";"), and a negative number according to the pattern after the semicolon (";"). If you do not use this character and the additional pattern, negative numbers display a minus ("-") prefix.
Escape characters
You can display the special characters above as literals if you enclose them in single quotation marks. For example, '%'.
Other characters
You can add any literal characters to the beginning or end of the format string.
Input numeric Props