Useful Flex Builder Shortcut Keys AdSense for Search Will be Powered by Custom Search
May 06

Here is 2 examples show you how to set a minimum and maximum allowable year in the Flex DateChooser control by setting the minYear and maxYear properties.

<?xml version=”1.0″ encoding=”utf-8″?>

<!– http://blog.flexexamples.com/2008/05/04/setting-a-minimum-and-maximum-allowable-year-in-the-datechooser-control-in-flex/ –> <mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml” layout=”vertical” verticalAlign=”middle” backgroundColor=”white”> <mx:DateChooser id=”dateChooser” yearNavigationEnabled=”true” initialize=”dateChooser.maxYear = new Date().fullYear;” /> </mx:Application>

 

 

<?xml version=”1.0″ encoding=”utf-8″?><!– http://blog.flexexamples.com/2008/05/04/setting-a-minimum-and-maximum-allowable-year-in-the-datechooser-control-in-flex/ –> <mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml” layout=”vertical” verticalAlign=”middle” backgroundColor=”white”> <mx:DateChooser id=”dateChooser” yearNavigationEnabled=”true” initialize=”dateChooser.minYear = new Date().fullYear;” disabledRanges=”{[{rangeEnd:new Date()}]}” /> </mx:Application>

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • description
  • E-mail this story to a friend!
  • Furl
  • Live
  • NewsVine
  • Reddit
  • StumbleUpon
  • Technorati

written by Flex \\ tags: , , , , , , ,

Leave a Reply