Home > JavaScript > Extjs 4 only numbers textfield

Extjs 4 only numbers textfield

February 17th, 2014 Leave a comment Go to comments

ExtJS 4 contains the field type “numberfield” to enter numbers. If the numbers have a lot of digits, this field can create problems. On this occasion, it can help a text field (“textfield”) with a filter for input only numbers.

Within the setting properties of the text field, enter the attribute “maskRe”. It allows you to create masks with regular expressions. Here is a mask that allows you to enter only the numbers:

Categories: JavaScript Tags: ,
  1. No comments yet.
  1. No trackbacks yet.