|
|
|
_formatter(
value
: Number
options
: dojo.number.__FormatOptions
) :
void
_formatter() is called by format(). It's the base routine for formatting a number,
as a string, for example converting 12345 into "12,345".
Parameter |
Type |
Usage |
Description |
value |
Number |
required |
The number to be converted into a string. |
options |
dojo.number.__FormatOptions |
optional |
Formatting options |
|
|
|
|
_getDisplayedValueAttr(
) :
void
|
|
|
|
_getValueAttr(
) :
void
Hook so attr('value') works.
Returns Number, NaN for '', or undefined for unparsable text
|
|
|
|
_onFocus(
) :
void
|
|
|
|
_setValueAttr(
value
: Number
priorityChange
: Boolean
formattedValue
: String
) :
void
Hook so attr('value', ...) works.
Parameter |
Type |
Usage |
Description |
value |
Number |
required |
|
priorityChange |
Boolean |
optional |
|
formattedValue |
String |
optional |
|
|
|
|
|
filter(
value
: Number
) :
void
This is called with both the display value (string), and the actual value (a number).
When called with the actual value it does corrections so that '' etc. are represented as NaN.
Otherwise it dispatches to the superclass's filter() method.
See dijit.form.TextBox.filter for more details.
Parameter |
Type |
Usage |
Description |
value |
Number |
required |
|
|
|
|
|
format(
value
: Number
constraints
: dojo.number.__FormatOptions
) :
void
Formats the value as a Number, according to constraints.
Parameter |
Type |
Usage |
Description |
value |
Number |
required |
|
constraints |
dojo.number.__FormatOptions |
required |
|
|
|
|
|
isValid(
isFocused
: Boolean
) :
void
Parameter |
Type |
Usage |
Description |
isFocused |
Boolean |
required |
|
|
|
|
|
parse(
value
: String
constraints
: dojo.number.__ParseOptions
) :
void
Parses the string value as a Number, according to constraints.
Parameter |
Type |
Usage |
Description |
value |
String |
required |
String representing a number |
constraints |
dojo.number.__ParseOptions |
required |
Formatting options |
|
|
|
|
postMixInProperties(
) :
void
|
|
|
|
serialize(
value
: Number
options
: Object
) :
void
Convert value (a Number) into a canonical string (ie, how the number literal is written in javascript/java/C/etc.)
Parameter |
Type |
Usage |
Description |
value |
Number |
required |
|
options |
Object |
optional |
|
|
|
|
|
constraints : dijit.form.NumberTextBox.__Constraints
Initial value{}
DetailsDespite the name, this parameter specifies both constraints on the input
(including minimum/maximum allowed values) as well as
formatting options like places (the number of digits to display after
the decimal point). See dijit.form.NumberTextBox.__Constraints for details.
|
|
|
|
editOptions : Object
Initial value{pattern : "#.######"}
DetailsProperties to mix into constraints when the value is being edited.
This is here because we edit the number in the format "12345", which is
|
|
|
|
regExpGen :
|
|
|
|
value : Number
DetailsThe value of this NumberTextBox as a javascript Number (ie, not a String).
If the displayed value is blank, the value is NaN, and if the user types in
an gibberish value (like "hello world"), the value is undefined
(i.e. attr('value') returns undefined).
Symetrically, attr('value', NaN) will clear the displayed value,
whereas attr('value', undefined) will have no effect.
|