Chang Background color of a textarea is not possible
Chang Background color of a textarea is not possible
Hello with GXT 2.0 i changed the background color of a textarea with following example:
textarea.setStyleAttribute("background-color", "#B0C4DE");
with GXT 2.2 the background color is not changed anymore....
in need a method like this:
textarea.setInputStyleAttribute("background-color", "#B0C4DE");
But this isnt in the API the background color only white.
Yes i use firebug.
There is a css class on the textarea with the name: x-form-field AND x-form-textarea
ic created my own css class:
.textarea-readonly{
background: #B0C4DE;
color: #000000;
cursor: default !important;
}
i add it with textarea.addInputStyleName("input-readonly");
but its still white
When its not a bug, what is the right method name to change the background?
sorry,
it is
textarea.addInputStyleName("textarea-readonly");
Yes firebug tells me that the other css classes say this:
.x-form-text, textarea.x-form-field { background-color:#FFFFFF;
background-image:url("../images/default/form/text-bg.gif");
border-color:#B5B8C8;
}