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

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -