Tuesday, September 27, 2011

GWT DatePicker +CSS

Hey guys,

I'm trying to create a calendar that represents when my DB has data. So I see DatePicker has addStyleToDates(styleName,List<Date>). That's all well and good, but it seems that weekends have a style that is overriding my style, and it never shows my style on the weekend. Looking at GWT's code, they have a PRIVATE styler that can take in a boolean to make it set style name, instead of add, but again, its private and I can't access it.

Are there any ways around this without creating my own DatePicker or implementing the entire style heirarchy?

My style is super simple for reference

.hasData
{
    background-color:green;
}

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/pVWNMOetaVcJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment