ExtJs TextArea has maxLength
property. When maxLength
property is used with enforceMaxLength
property it restrict the maximum number of characters that can be entered into the field.
If I set maxLength
property to 5 and enforceMaxLength
to true, user is only allowed to enter 5 character. Even when you paste some string which is greater than 5 characters, text-area only allows 5 character and remaining characters are ignored.
Since we can see the CodeBase of ExtJS, I want to see the code, which does not allow user to enter more than 5 character in the scenario I explained earlier.
I looked at this link and clicked on view source which opened this page but I am not able to figure out what code is getting executed for the above scenario.
I am more interested in learning how to trace back to the code which gets executed when user paste or type some text in ExtJs textarea.
I am using ExtJs 4.1. Feel free to provide your feedback if the question does not make sense