I'm using the DateField in Gxt 3.1.1, please help me how can I customize/remove the hover effect when the mouse hovered on 'Today' button as in the example.
I've tried to write a wrapper of DatePickerCustom as below to access todayBtn
behavior,
public class DatePickerCustom extends DatePicker {
public DatePickerCustom() {
super();
}
public TextButton getTodayButton() {
return this.todayBtn;
}
}
which is used by DateField internally, and wrote a wrapper for DateField as below to access DatePickerCustom as below to override the existing behavior of getDatePicker()
in DateField
public class DateFieldCustom extends DateField {
private DatePickerCustom myPicker;
public DateFieldCustom(){
super();
myPicker = new DatePickerCustom();
}
@Override
public DatePickerCustom getDatePicker(){
return myPicker;
}
public init(){
myPicker.getTodayButton().removeToolTip(); //line 1
myPicker.getTodayButton().setToolTipConfig(null) //line 2
}
}
Surprisingly the code at //line 1 or 2 has no effect to remove hover effect on 'Today' hover of DateField.
Please help.