设置日期选择组件(DateField )的选择范围

<?xmlversion="1.0"encoding="utf-8"?>
<!--http://blog.flexexamples.com/2007/12/17/setting-selectable-ranges-in-the-flex-datefield-control/-->
<mx:Applicationxmlns:mx="http://www.adobe.com/2006/mxml"
layout
="vertical"
verticalAlign
="top"
backgroundColor
="white">

<mx:Form>
<mx:FormItemlabel="rangeStartonly:">
<mx:DateFieldid="dateField1"
showToday
="false"
selectableRange
="{{rangeStart:newDate()}}"/>
</mx:FormItem>
<mx:FormItemlabel="rangeEndonly:">
<mx:DateFieldid="dateField2"
showToday
="false"
selectableRange
="{{rangeEnd:newDate()}}"/>
</mx:FormItem>
<mx:FormItemlabel="rangeStart/rangeEnd:">
<mx:DateFieldid="dateField3"
showToday
="false"
selectableRange
="{{rangeStart:newDate(2007,11,3),
rangeEnd:newDate(2007,11,28)}}
"/>
</mx:FormItem>
</mx:Form>

</mx:Application>

本文转自:http://www.cnblogs.com/xxcainiao/archive/2008/04/26/1172160.html

你可能感兴趣的:(html,Flex,Blog,Adobe)