Thursday, June 21, 2012

Re: Need to style DataGrid's header <table> element

Jeremy,

A less than glamorous way to apply CSS changes that are either not exposed, or not supported (i.e. CSS3) are to do it yourself at load time.

For example, in the constructor (if you're extending) or directly after the instantiation of your DataGrid, walk its DOM and get that <th> element you're looking for and apply that CSS style explicitly (element.setAttribute("border-collapse","collapse")).

It is not pretty, but I've had to do this a few times. Ideally there is a better way, but if not, do what you must.


Sincerely,
Joseph

--
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/-/bSUNyU3-Se8J.
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