Home Tutorial Flex Flex4 Components DateField control in Flex4

 
 

Share on Google+Share on Google+
DateField control in Flex4
Posted on: May 17, 2010 at 12:00 AM
Advertisement
The DateField control is a MX component. It has no Spark component. It has a text field control and a calendar icon on its right side.

DateField control in flex4:

The DateField control is a MX component. It has no Spark component.
It has a text field control and a calendar icon on its right side. When a user clicks on this icon then pops up a DateChooser control. If the user does not select a date the text field is blank. You can change a month by left or right arrow.If you select a date, the date chooser closes and the text field displays the selected date in date format.
The tag of DateField control is <MX:DateField>.

Example:

<?xml version="1.0" encoding="utf-8"?>

<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">

<s:Panel title="DateField Control Example" width="278" height="262">

<mx:DateField x="10" y="10"/>

</s:Panel>

</s:Application>

This is example for DateField control. Please choose a date from DateField control.

Output:

Running Application:

To view this page ensure that Adobe Flash Player version 10.0.0 or greater is installed.

Download this code

Advertisement

Related Tags for DateField control in Flex4:


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: May 17, 2010

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com