Skip to content

Instantly share code, notes, and snippets.

@ozknozsrt
Created October 26, 2021 08:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ozknozsrt/6cae8dd173ed6aa4b22bd7bee535e8e7 to your computer and use it in GitHub Desktop.
Save ozknozsrt/6cae8dd173ed6aa4b22bd7bee535e8e7 to your computer and use it in GitHub Desktop.
inputmask decimal options like for currency "100.000.000,00"
$(input).inputmask({
'alias': 'decimal',
'radixPoint': ',',
'groupSeparator': '.',
'autoGroup': true,
'rightAlign': false,
'digits': 2,
'suffix': ` ${bnvst.options.selectedCurrencySymbol}`,
'digitsOptional': false,
'placeholder': '0,00',
'autoUnmask': true
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment