extjs - How to put validation on text field not allow characters while paste in ext js -


how put validation on text field not allow characters while paste in ext js?

i using maskre: /[0-9]/.
using while entering value digits allowed.
while paste allows character.

maybe check input value on "blur" event :

mytextfield.on('blur', function (component) {     if (!component.isvalid()) {          // need do, maybe clear textfield ?     } }) 

Comments

Popular posts from this blog

xml - Extract substrings with XSLT -

math - "ELO Rating" and how does "TSR Rating" work? -

How can do a tuple comparison in coffeescript similar to that in python? -