SmartGWT ver: 2.3
Browser: IE 7.0.5730
Hi,
How do I change the font color of a TextItem when it is disabled?
I have used this in my java code:
	CSS code:
	The padding, border, font-family, and font-size works and being applied to the TextItem except for the "color". It still remains as grey. How do I change the font color?
Thanks!
					Browser: IE 7.0.5730
Hi,
How do I change the font color of a TextItem when it is disabled?
I have used this in my java code:
Code:
	
	txtItem.setTextBoxStyle("locTextItem");
txtItem.setDisabled(true);
txtItem.setTitle("Location");
txtItem.setValue("New York");
Code:
	
	.locTextItem,
.locTextItemFocused,
.locTextItemError,
.locTextItemHint {
    padding:2px;
    border:1px solid #898d96;
    background:#FFFFFF;
    color:#333333;
    font-family:Arial,Verdana,sans-serif; 
    font-size:12px;
}
.locTextItemDisabled {
    padding:3px;
    border:0px solid #898d96;
    background:#FFFFFF;
    font-family:Arial,Verdana,sans-serif; 
    color:red;
    font-size:12px;
}
Thanks!
Comment