Archive

Archive for February, 2014

Extjs 4 only numbers textfield

February 17th, 2014 No 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:

    maskRe:/[0-9.]/
Categories: JavaScript Tags: ,