ror
11 Sep 2009, 4:35 AM
Hello,
I am using datefield and I need to change a color(and border) of textfield. I am trying use a style, but it doesen't work. DatePicker is in Layout Container.
DateField data = new DateField();
data.setWidth(150);
data.setFormatValue(true);
data.getPropertyEditor().setFormat(DateTimeFormat.getFormat("dd MMMM y"));
data.setValue(new Date());
data.setStylePrimaryName("userDatePickerClear");
and CSS
.userDatePickerClear{
background-color: none !important;
background-image: none !important;
background-color: red !important;
}
In firebug I don't see that datepicker use this style, but when I add style to layout containter its take effects. I am must change color only textfield (datepicker must be untouched).
I am using datefield and I need to change a color(and border) of textfield. I am trying use a style, but it doesen't work. DatePicker is in Layout Container.
DateField data = new DateField();
data.setWidth(150);
data.setFormatValue(true);
data.getPropertyEditor().setFormat(DateTimeFormat.getFormat("dd MMMM y"));
data.setValue(new Date());
data.setStylePrimaryName("userDatePickerClear");
and CSS
.userDatePickerClear{
background-color: none !important;
background-image: none !important;
background-color: red !important;
}
In firebug I don't see that datepicker use this style, but when I add style to layout containter its take effects. I am must change color only textfield (datepicker must be untouched).