Thanks for all sugestions. I studied DateField, MaskedDateField, StringDateFormatter, etc ... and end up building my own MaskedTextInput bead simplier that have a single parameter "mask" and is be able to give the mask feature to the TextInput. For now is very basic, because the internal method format is only be able to handle numbers and special characters (non numbers) that for now is enought for local zip codes.
Harbs <[email protected]> escreveu no dia quarta, 30/03/2022 à(s) 09:12: > You can likely just copy the code from the ZipCodeFormatter in the MX > package. > > > On Mar 30, 2022, at 11:11 AM, Harbs <[email protected]> wrote: > > > > Check out the Formatter package. There’s no zip-code formatter, but you > can model after the other formatters and use FormatableTextInputView. > > > > HTH, > > Harbs > > > >> On Mar 30, 2022, at 9:56 AM, Yishay Weiss <[email protected]> > wrote: > >> > >> Not aware of one. If you’re using Jewel, there are all sorts of similar > beads you can model after under > >> > >> > royale-asjs\frameworks\projects\Jewel\src\main\royale\org\apache\royale\jewel\beads\controls\textinput > >> > >> From: Hugo Ferreira<mailto:[email protected]> > >> Sent: Wednesday, March 30, 2022 3:08 AM > >> To: Apache Royale Development<mailto:[email protected]> > >> Subject: Masked TextInput or Bead > >> > >> Hi, > >> > >> There is already a masked input for zip code ready to use (####-###) ? > >> For example a bead ? > >> > >> Regards, > >> Hugo. > >> > > > >
