Sunday, May 29, 2011

Re: Overriding a css style loclly

On Mon, May 30, 2011 at 00:39, lalit <lalit.bhatt@gmail.com> wrote:
> I can do that but the thing I was trying for is to handle it in a
> global way. This way I do not have to apply style locally to each
> label widget and there are too many of them. What I was striving for
> is that for all the labels in app, apply my overridden style of .gwt-
> Label however for all the labels that are present in the context of a
> given ui.xml (UI binder file), apply a different .gwt-Label.
>
> thanks,

In your ui.xml, declare .myLabel, then for every label in that page,
do: <g:Label styleName="{style.MyLabel}">text</g:Label>.

There's no other way simpler way since .gwt-Label is a un-obfuscated class name.

-- Joe

--
Proper software development is like female orgasm. Some claim it's a
myth, others try very hard to make it happen but don't know how, and
most magazines, books and videos showing it are showing faked ones.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
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