updated: 9 Nov 2006

Summary


My app needs to use these masked editors that validate input as it is typed. I don't want to have to write different editors for inside and outside of the grid so here's what I came up with. (I do still want that popup date picker in the grid but I still need to get to that.) Also, the MaskEditor base class takes a configurable mask, e.g.
var mask = [/[012]/,/\d/,':',/[0-5]/,/\d/];
The files I created are: MaskEditor.js and GridProxyEditor.js



Mask Editors

Date: Time: Phone:
     
     
  
(hitting +/- in date input adds/subtracts one day)



Same editors in a grid