Hi,
I'am using SmartGWT 4.1-p20140410 on Firefox 26.0. I am trying to mark some "special days" on date picker (holidays, etc.). My code looks like this:
I am trying to set disabled dates and add them new css style
but it takes no effect. Any ideas how to mark "special days" on date chooser?
I'am using SmartGWT 4.1-p20140410 on Firefox 26.0. I am trying to mark some "special days" on date picker (holidays, etc.). My code looks like this:
Code:
public class DateItem extends com.smartgwt.client.widgets.form.fields.DateItem { private DateChooser chooser = new DateChooser(); public DateItem(String name, String title) { super(name, title); onInit(); } private void onInit() { Date[] dates = new Date[]{new Date(2014, 06, 26)}; chooser.setDisabledDates(dates); chooser.setDisabledWeekdayStyle("holidays"); chooser.setDisabledWeekendStyle("holidays"); } }
Code:
.holidays { color: red; }
Comment