Functiondijit.form.NumberTextBoxMixin.parse

dojo.require("dijit.form.NumberTextBox");
defined in dijit/form/NumberTextBox.js

parses the value as a Number, according to constraints

Usage

function (/*String*/ value, /*dojo.number.__ParseOptions*/ constraints) (view source)
parametertypedescription
valueString 
constraintsdojo.number.__ParseOptions
fieldtypedescription
.currencyObjectobject with currency information
.localeStringoverride the locale used to determine formatting rules
.patternStringoverride pattern with this string. Default is provided based on
.strictfalse by default
.typeStringOptional. choose a format type based on the locale from the following: decimal, scientific, percent, currency. decimal by default.