Just a simple way to create masks to your currency form fields with ExtJS.
Project based jQuery-maskMoney
To view a complete demonstration of it's features and usage, access our examples page!
The options that you can set are:
- symbol: the symbol to be used before of the user values. default: 'US$'
- showSymbol: set if the symbol must be displayed or not. default: false
- symbolStay: set if the symbol will stay in the field after the user exists the field. default: false
- thousands: the thousands separator. default: ','
- decimal: the decimal separator. default: '.'
- precision: how many decimal places are allowed. default: 2
- defaultZero: when the user enters the field, it sets a default mask using zero. default: true
- allowZero: use this setting to prevent users from inputing zero. default: false
- allowNegative: use this setting to prevent users from inputing negative values. default: false
- rightAlign: align field text to right. default: true
ExtJS-FieldMoney is released under the MIT license.