How to remove Border from mx:DateField?
according the documentation borderThickness is an applicable style, but when I try to set it to anything (would prefer '0') it says "The style 'borderThickness' is excluded by type 'mx.controls.DateField'."
I could style the background color to be the same as the background, but I have an image behind so this will not work.
开发者_Go百科There must be some way to remove this border!?
There is a protected property in the DateField named textInput. You can override the DateField class and set style 'borderStyle' of the textInput, which is of type TextInput, to 'none'. Example: .
public class ExtendedDateField extends DateField {
override protected function createChildren():void{
super();
textInput.setStyle('borderStyle','none');
}
}
精彩评论