Forum /
Ext GWT Community Forums (2.x) /
Ext GWT: Discussion /
How to change background-color of TextField ?
How to change background-color of TextField ?
1.addStyleDependentName
2.addStyleName
3.setInputStyleAttribute("background-color", "gray");
4.setStyleAttribute("background-color", "gray");
Tried these methods, will not work.
Which method can be done with it, or no way?
Please help, thank you...
setInputStyleAttribute("background-color", "gray");
This will work. Take a look at it with firebug and you will see there there is also an image as background image which you will need to remove.
field.addStyleName("myField");
.myField input {
background: gray none;
}
Thank you, the problem has been resolved.
Similar Threads
By IvanJ in forum Ext 3.x: Help & Discussion
Replies: 7
Last Post: 11 Nov 2009, 2:55 PM
By smruti_patra in forum Ext 2.x: Help & Discussion
Replies: 5
Last Post: 26 Oct 2009, 6:40 AM
By kcireneg in forum Ext 2.x: Help & Discussion
Replies: 2
Last Post: 12 Apr 2009, 5:52 PM
By khnle in forum Ext 1.x: Help & Discussion
Replies: 1
Last Post: 5 Feb 2008, 6:47 AM
By pongz79 in forum Ext 2.x: Help & Discussion
Replies: 4
Last Post: 29 Nov 2007, 10:49 AM
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us