autoNumeric-2.0-BETA

last update 2014-08-02 GMT 11:00 AM

New methods

"unSet" - displays the raw value of the input.

"reSet" - resets the unset value

"wipe' - deletes the value and any sessionStorage or cookies that were created by autoNumeric

"destroy' - modified to delete value, sessionStorage or cookies that were created by autoNumeric and kills autoNumeric

Modified methods

"get" - displays the raw value of the input.

"getString" - displays the raw value of the input.

"getArray" - displays the raw value of the input.

New options and modifications

"eDec" - this displays expanded decimal places when the input has focus.

"nSep" - this displays the number with decimal only when the input has focus.

"aStor" - when true allows the "eDec" value to be retained via sessionStorage on compatible browsers of a session cookie in EI 6 & 7.

"oRide" - overrides min / max values and controls the number of integers. Helpful when you run into the limits of javaScript math accuracy.

"pNeg" - positions the minus sign "-" to the left or the right of the currency sign.

"aSuffix" - allows a suffix to be place at the far right.

"mRound" - added rounding method used in Switzerland

"dGroup" - modified the digital grouping

Notes:

Demonstration showing the new features:

 Input Demonstrates value and options
eDec, aStor value="1233333.888881" data-e-dec="5" data-a-stor=true
eDec, aStor value="-10000,009999" data-e-dec="10" data-v-min="-111111" data-n-bracket="(,)" data-a-stor=false
nSep value="12345" data-a-sign="€ " data-p-sign="s" data-n-sep=true
nSep value="1237658.98798798" data-a-sign="$ " data-n-sep=true
aSuffix value="12345" data-a-sign="$" data-p-sign="s" data-r-val=true
aSuffix value="1237658.98798798" data-a-sign="€" data-r-val=true
eDec, nSep & aSuffix value="1234.98798798" data-a-sign="$" data-e-dec="10" data-a-stor=true data-r-val=true
oRide: '6,3' data-o-ride="true" Overrides the min/max values and controls the number of intergers
pNeg: 'left' data-p-neg="left" places the minus sign to the left of the currency sign
pNeg: 'right' data-p-neg="right" places the minus sign to the right of the currency sign
mRound='CHF' data-m-round="CHF" rounds to the nearest .00 or .05
dGroup: '2s' data-m-round="2s" data-a-sign="Rs. " scalling for "Lakh Crore"
   
     

Text " contenteditable" - this is on my wish list is to eventually get autoNumeric to work here - the issue is there is no reliable method to place the caret.

$1,000.00