Here we got to use a property to apply style to our Date Field control.
dateChooserStyleName -> property to use
use it as:
<mx:DateField id=”dateField”
dateChooserStyleName=”subDateChooser” />
Now define ur style like below with properties of your like.
<mx:Style>
.subDateChooser {
backgroundColor: black;
color: white;
fontweight:bold
}
</mx:Style>
Now the Date Field control has the style we have defined.
This gives the snapshot,enjoy the code.


February 25, 2009 at 9:58 pm |
How do you get rid of the extra space between the last row of numbers and the bottom of the component. I looks at the doco and I thought the “bottom” css style would do it, but it doesn’t. Is it a skin of some sort?
February 26, 2009 at 4:10 am |
Hi,
In that case you go to go for the CustomComponent and skin for the component.
regards,
kumar.
March 15, 2009 at 1:22 am |
i was thinking if anyone here knew how to get the data in a datefield when printing???
and how to make a constraint that wont allow users to select past dates??
really need your help.
thanks a lot!
March 16, 2009 at 6:50 am |
Hi,
can make use of the property selectableRange in the DateField to restrict date selection.
regards,
kumar.