I had a typo...
public interface MyResources extends ClientBundle {
@Source("MyCompanyLogo.png")
ImageResource myLogo();
@Source("skins.css")
CssResource skins();
}
Then in skins.css you can have:
.myDiv {
offset-left: value('myLogo.getWidth', 'px');
}
On Dec 13, 8:23 pm, Carlos Aguayo <[email protected]> wrote:
> Ok we figured it out, here's the more elaborate example:
>
> public interface MyResources extends ClientBundle {
>
> @Source("MyCompanyLogo.png")
> ImageResource myLogo();
>
> @Source("skins.css")
> CssResource skins();
>
> }
>
> Then in skins.css you can have:
>
> .myClassName {
> width: value('logo.getWidth', 'px');
>
> }
>
> On Dec 13, 7:58 pm, Carlos Aguayo <[email protected]> wrote:
>
>
>
>
>
>
>
> > Could someone provide a more elaborate example on how to use the
> > "Value function" as described here:
>
> >http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.htm...
>
> > The documentation has this example:
>
> > .myDiv {
> > offset-left: value('imageResource.getWidth', 'px');
>
> > }
>
> > However I don't know where is "imageResource" coming from or defined.
>
> > Thanks!
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.