Use an array to set the disabledDays property for DateField. : DateField « Components « Flex






Use an array to set the disabledDays property for DateField.

Use an array to set the disabledDays property for DateField.
       

<!--
Code from Flex 4 Documentation "Using Adobe Flex 4".

This user guide is licensed for use under the terms of the Creative Commons Attribution 
Non-Commercial 3.0 License. 

This License allows users to copy, distribute, and transmit the user guide for noncommercial 
purposes only so long as 
  (1) proper attribution to Adobe is given as the owner of the user guide; and 
  (2) any reuse or distribution of the user guide contains a notice that use of the user guide is governed by these terms. 
The best way to provide notice is to include the following link. 
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/

-->



<!-- controls\date\DateChooserDisabledOption.mxml -->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/mx">
    <!-- Use tags.-->
    <mx:DateField>
        <mx:disabledDays>
            <fx:Number>0</fx:Number>
            <fx:Number>6</fx:Number>
        </mx:disabledDays>
    </mx:DateField>
    <!-- Use tag attributes.-->
    <mx:DateField disabledDays="[0,6]" />
</s:Application>

   
    
    
    
    
    
    
  








Related examples in the same category

1.Use DateField to let user choose dateUse DateField to let user choose date
2.DateField form itemDateField form item
3.Use ActionScript to set initial selected date for a DateField controlUse ActionScript to set initial selected date for a DateField control
4.DateField Item EditorDateField Item Editor
5.DateField renderer for ListDateField renderer for List
6.Date Entry with DateFieldDate Entry with DateField
7.Using DateField as List EditorUsing DateField as List Editor
8.Set the disabledDays property in two different ways: using tags and using tag attributesSet the disabledDays property in two different ways: using tags and using tag attributes
9.Set the formatString property to "MM/DD/YY" to display a two-digit yearSet the formatString property to
10.Use Date from a Calendar ControlUse Date from a Calendar Control