I'm attempting to give our users the ability to customize a limited subset of our layout for OEM reasons. The parts of our layouts in question that we want to give them the ability to change use Css styles that we inject using the client bundle.
Given a string in which contains css styles that I'd like to inject, how could I achieve that?
For a css file we do something like:
interface LoginDesktopStyle extends CssResource {
String stylexyz();
}
interface StyleResources extends ClientBundle {
@Source("LoginDestktopCss.css")
LoginDesktopStyle css();
}
..
..
final StyleResources resources = GWT.create(StyleResources.class);
resources.css().ensureInjected();
style = resources.css();
setStylePrimaryName(style.container());
Is there something similar that I could do when the source of the css is a string?
-- Given a string in which contains css styles that I'd like to inject, how could I achieve that?
For a css file we do something like:
interface LoginDesktopStyle extends CssResource {
String stylexyz();
}
interface StyleResources extends ClientBundle {
@Source("LoginDestktopCss.css")
LoginDesktopStyle css();
}
..
..
final StyleResources resources = GWT.create(StyleResources.class);
resources.css().ensureInjected();
style = resources.css();
setStylePrimaryName(style.container());
Is there something similar that I could do when the source of the css is a string?
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/groups/opt_out.
No comments:
Post a Comment