DataPicker in GWT

49 views
Skip to first unread message

Климент Кистень

unread,
Jul 4, 2023, 12:32:20 PM7/4/23
to GWT Users
How can I set an additional selector for a date that has the "datePicker DayIsFiller" selector in the GWT DatePicker class?

Colin Alworth

unread,
Jul 4, 2023, 1:52:11 PM7/4/23
to GWT Users
It appears that this is specified as part of the DefaultCalendarView type, in the nested DateCell class's update(Date) method. I don't see an obvious way to override that, nor to replace the DatePicker.StandardCss type (package protected). Instead, you might implement CalendarView in your own way (perhaps copying some of or all of the existing content in DefaultCalendarView), then subclass DatePicker to pass your own instance to the protected constructor that takes a CalendarView instead?

As another option, can you clarify what additional styling you are trying to add? It might be possible to use the existing CSS styles to do this, or find another way to produce the same effect you're after?

Климент Кистень

unread,
Jul 4, 2023, 2:43:59 PM7/4/23
to GWT Users
I'll try to override CalendarView. I don't think there is any other way. Thank's

вторник, 4 июля 2023 г. в 20:52:11 UTC+3, Colin Alworth:
Reply all
Reply to author
Forward
0 new messages