1
votes

I am new with Sencha Extjs 6. I want to use xtype:'numberfield' and it's working fine. But I want to set its max length, for example by 2, when input more than 2 digits just keep it nothing change. I don't know how to do it.

Please help me!!! Thanks in advance.

1

1 Answers

3
votes

You need to learn how to use Sencha Doc.

Well for this you need to use enforceMaxLength : true, and maxLength :2,This will work as you want. I created a fiddle for you. Fiddle Please test