I need to use numberfield for user input number. When I set string '123,555' it shows only 123 to numberfield. But if I use textfield, it works as expected. I use this for thousand separation.
xtype: 'numberfield',
itemId: 'payment1',
cls : 'txtAlignRight',
flex : 4,
value:'0',
autoComplete: false,
autoCorrect: false,
clearIcon: false,
originalValue: true,
required: true,
maxLength: 15,
//------------------
num.setValue('123,555')
//result = 123
Is there any solutions to do it? Thanks in advance. Note: I use sencha extjs 6 modern.
TO change which chars are allowed. You might wanna change these properties
The way these properties work is here
Sounds like you're needing to add Formatting to a number field.
here is an override that adds the useThousandSeperator to a numberfield
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With