Inputmask icon indicating copy to clipboard operation
Inputmask copied to clipboard

Missing documentation on "negationSymbol" option

Open xantari opened this issue 2 years ago • 0 comments

I found how to do this, but I had to dig through the sources and do some google searches to find it.

The documentation is missing this parameter: "negationSymbol".

Please add documentation about negationSymbol so other users know it exists.

I figured it out using it this way:

    Inputmask("decimal", {
        radixPoint: ".",
        groupSeparator: ",",
        digits: 2,
        autoGroup: true,
        prefix: '$',
        negationSymbol: { front: '(', back: ')' }
    }).mask(".currency");

xantari avatar May 28 '22 12:05 xantari