PDA

View Full Version : TextField border



valery.stroeder
16 Aug 2010, 11:59 PM
Hello,

Here is my code


TextField<String> myTextField;

..
myTextField.setStyleAttribute("border","none");It doesn't work, how can I remove the textField input's border ?

Thanx

sven
17 Aug 2010, 3:12 AM
The border is on the input element. You are setting it on the wrong element. Try to use firebug and you will see what i mean.

valery.stroeder
17 Aug 2010, 3:59 AM
My solution

java

myTextField.setStyleName("noBorder");css

.noBorder .x-form-text, .noBorder textarea.x-form-field {
border : none;
}I find it miss something like getInput():


myTextField.getInput().setStyleAttribute("border","none");

sven
17 Aug 2010, 4:00 AM
field.setInputStyleAttribute("border,"none");

valery.stroeder
17 Aug 2010, 4:46 AM
Oh yeah, thanks!