开发者

How to remove Border from mx:DateField?

开发者 https://www.devze.com 2023-02-25 06:07 出处:网络
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.

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');
}

}
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号