Set selectableRange of DateChooser with initialize event : DateChooser « Components « Flex






Set selectableRange of DateChooser with initialize event

Set selectableRange of DateChooser with initialize event
       
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script>
        
        import mx.events.DateChooserEvent;
        private function dateChooser_init():void {
            myDC.dayNames=['Sun', 'Mon', 'Tue','Wed', 'Th', 'Fri', 'Sat'];
            myDC.selectableRange = {rangeStart: new Date(2004,0,1),rangeEnd: new Date(2007,0,10)};
        }
        private function onScroll():void {
            myDC.setStyle("fontStyle", "italic");
        }
      
    </mx:Script>
    <mx:DateChooser id="myDC" 
                    width="200" 
                    creationComplete="dateChooser_init();" 
                    scroll="onScroll();" />
</mx:Application>

   
    
    
    
    
    
    
  








Related examples in the same category

1.Use DateChooser to choose dateUse DateChooser to choose date
2.DateChooser control with DateChooser control with <mx:DateChooser>
3.Access selectedDate from DateChooserAccess selectedDate from DateChooser
4.DateChooser header styleDateChooser header style
5.DateChooser Day styleDateChooser Day style
6.Set Today style for DateChooserSet Today style for DateChooser
7.DateChooser control selectableRange, disabledRanges, disabledDaysDateChooser control selectableRange, disabledRanges, disabledDays
8.Set dayNames of DateChooser with initialize eventSet dayNames of DateChooser with initialize event
9.Set firstDayOfWeek of DateChooser with initialize eventSet firstDayOfWeek of DateChooser with initialize event
10.Set headerColor of DateChooser with initialize eventSet headerColor of DateChooser with initialize event
11.DateChooser scrolling eventDateChooser scrolling event
12.Set DateChooser displaying MonthSet DateChooser displaying Month
13.Set date range for DateChooserSet date range for DateChooser
14.Add a DateChooser controlAdd a DateChooser control
15.Date entry with DateChooserDate entry with DateChooser
16.Attach DateChooser to PopUpButtonAttach DateChooser to PopUpButton
17.A DateChooser controlA DateChooser control
18.DateChooser StylesDateChooser Styles
19.DateChooser SelectableDateChooser Selectable
20.Set dayNames, firstDayOfWeek, headerColor, and selectableRange properties of a DateChooser control by using an initialize event:Set dayNames, firstDayOfWeek, headerColor, and selectableRange properties of a DateChooser control by using an initialize event:
21.Programmatic DateChooser SelectorProgrammatic DateChooser Selector
22.Get full year from selected dateGet full year from selected date
23.Set selectedDate property in a functionSet selectedDate property in a function
24.Don't show todayDon't show today
25.Check if selected date is nullCheck if selected date is null