http://autonumeric.org - autoNumeric is a standalone library that provides live *as-you-type* formatting for international numbers and currencies
AlexandreBonneau on next
Adding missing predefined optio… (compare)
.
that it would convert it to a ,
since no points are used as the digitGroupSeparator
Noob question: I am trying to initialize this for multiple inputs and want the NorthAmerican options. Here is what I have tried.
This works, but no dollar signs
new AutoNumeric.multiple('input.rate', { modifyValueOnWheel: false });
These do not work
new AutoNumeric.multiple.northAmerican('input.rate', { modifyValueOnWheel: false });
new AutoNumeric.multiple.northAmerican('input.rate', { modifyValueOnWheel: false }, dollarPos);
Any help is greatly appreciated.
Hello! I'm trying to use the 'change' event, as I see that Vue AutoNumeric supports it, but it's not working, the event is not called.
<vue-autonumeric v-model="Produto.PrecoFob" v-on:change="atualizarCalculos"></vue-autonumeric>
If I use 'input' event, it is called.
What can I do to make change event work?
let myVal = an.getNumericString()
getNumber()
, or getFormatted()
etc.)
new AutoNumeric('selector')
will initialize only the very first element it finds with that selector
let anArray = AutoNumeric.multiple('.currency')
form*
functions :)
Hello @AlexandreBonneau , how are you?
I am currently using the plugin in a Blazor solution.
I have configured it so that the digitGroupSeparator is dot "." and the decimalCharacter is comma "," with two decimal places. Example: "1.000,50".
I have a problem when using the binding provided by Blazor, because numbers on the server are dotted as a decimal, like "1000.50".
When the plugin initializes, it works fine allowing me to enter for example "1.000,50", but when having applied this initialization format to the control, Blazor wants to apply a number like "1000.50", the text box remains as "100.050,00".
Do I have a solution for this behavior? I really need it to be displayed with comma decimal separator and I can't use Jquery to set the values because I need to use blazor.
Thank you very much and apologies in advance for my terrible English.
hi, im using the autonumeric plugin in a .net Blazor App. I have an issue when submitting the form, the plugin SOMETIMES resets the value to the previous value.
If i don't use autonumerics it works well with a normal input.
This only happens when the form is submitted withouth loosing focus.
But it happens like 1 o 20 times.
I tried a lot of fixes no one worked..
decimalPlaces
is set to 2.12.2
, we want it to be formatted to 12.20
.12.232
.decimalPlaces
.12.232
instead of 12.23
.