PDA

View Full Version : How to set maskRe in Ext Designer



htammen
26 Jul 2010, 10:51 PM
how can I set the maskRe property of TextField in Ext Designer? I want to allow only digits.
I´ve tried:
{[0-9]}: This throws an exception while starting my form
[0-9]: This says "this.maskRe.test is not a function" when I press any key in my TextField
Several other attempts also didn´t work.
What is the syntax for all these properties that expect an object?

jarrednicholls
27 Jul 2010, 4:43 AM
Hi htammen,

The properties that expect an object or array, you enter the values exactly as you would in script. I have fixed a bug regarding regex entries in the latest relese, 1.0.2.11, so please update. You then would enter the value as such: /\d/ or the longhand version /[0-9]/

Thanks.

htammen
27 Jul 2010, 4:56 AM
thank you very much. After updating Ext Designer it´s working. Good support

jarrednicholls
27 Jul 2010, 5:01 AM
Great to hear, thanks for letting me know.