Skip to content

Using ImageResource with ClientBundle

kengu edited this page Jan 20, 2013 · 3 revisions

If you want to include images in use by external js, do the following

1. Style

@sprite .any-image {
   gwt-image: "any_function";
}

2. ClientBundle instance

SomeBundle extends ClientBundle {
   @Source("images/any-image.png");
   ImageResource any_function();
}

Clone this wiki locally