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 -

Fatal error: Call to undefined function menu_execute_active_handler() in drupal 7.9 -

python - RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK -