Using DateField as List Editor : DateField « Components « Flex






Using DateField as List Editor

Using DateField as List Editor
       
<!--
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/

-->



    <!-- itemRenderers\list\ListEditorDateField.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">
    <fx:Script> 
         
        import mx.collections.*; 
        import mx.controls.DateField; 
        import mx.collections.ArrayCollection; 
        [Bindable] 
        private var catalog:ArrayCollection = new ArrayCollection([ 
            {confirmed: new Date(), Location: "Spain"}, 
            {confirmed: new Date(2006,0,15), Location: "Italy"}, 
            {confirmed: new Date(2004,9,24), Location: "Bora Bora"}, 
            {confirmed: new Date(), Location: "Vietnam"} 
        ]); 
      
    </fx:Script>
    <mx:List id="myList" width="300" height="300" rowHeight="50"
        dataProvider="{catalog}" editable="true" labelField="confirmed"
        itemEditor="mx.controls.DateField" editorDataField="selectedDate" />
</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.Use an array to set the disabledDays property for DateField.Use an array to set the disabledDays property for DateField.
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