Either you use <ui:style> to get an implicit ClientBundle and CssResource (you can define an extended interface, other source CSS files to use, and inject the resulting CssResource into a @UiField), and it'll be automatically ensureInjected().
-- Or you use an existing ClientBundle and CssResource (with existing source CSS files) that you reference through <ui:with> (either GWT.create()d and possibly injected into a @UiField, or taken from a @UiField(provided=true), and you have to call ensureInjected() yourself (as with any other object used through <ui:with>)
On Friday, February 27, 2015 at 3:38:37 PM UTC+1, Stefano Pulze wrote:
On Friday, February 27, 2015 at 3:38:37 PM UTC+1, Stefano Pulze wrote:
Hi all,Can anyone explain me how tu use (and reuse) CssResource inside a UiBinder?I don't understand if I have to make a ClientBundle with some CssResources interfaceand use with the tag <ui:with .... /> inside a UiBinder.Be CssResource ensureInjected() ?Thanks
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment