22 March 2010
Formatters are similar to validators, with the two often being used hand-in-hand to first validate data, then format any output to be displayed. Flex comes with a number of predefined formatters that can make your development chores easier. These Flex formatters have been specifically designed to handle data that typically comes from a back-end system, such as a database, but likely isn’t in a presentable format for the user to comfortably view.
Making use of formatters can be done in a number of ways, from real-time formatting that uses a static formatter, to ActionScript-based approaches that give you the flexibility to inject custom logic.
This chapter covers:
This chapter is excerpted from Flex 4 in Action (early access edition). It is being reproduced here by permission from Manning Publications. Manning early access books and ebooks are sold exclusively through Manning. Visit the book's page for more information.