/
maskitoNumberOptionsGenerator
to create a mask for entering a formatted number. Use maskitoParseNumber
to get number-type value.
precision
parameter to configure the number of digits after decimal separator. decimalSeparator
and thousandSeparator
to get mask with locale specific representation of numbers. postfix
parameter to set non-removable text after the number. maskitoCaretGuard
to clamp caret inside allowable range. max
parameter. Set decimalZeroPadding: true
to always show trailing zeroes.
Non removable dollar sign is achieved by using prefix
parameter.
Use minusSign
parameter to configure the character which indicates that a number is negative.
In this example hyphen is used as minusSign
decimalZeroPadding
and enable it only after user inserts decimal separator.