Re: how to wrap an image inside a Hyperlink ?
Thank You,
do you know if its possible to use GWT Image type with your
approach ?
in other words, the image itself is not coming from a URL, it is a GWT
Image object.
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/Image.html
On Jan 16, 6:03 am, ailinykh <ailin...@gmail.com> wrote:
> This is what I do
>
> @UiField
> Hyperlink imageLink;
>
> ...
> String imgStr="<img src='"+url+"'/>";
> imageLink.setHTML(imgStr);
>
> Andrey
>
> On Jan 15, 4:25 pm, zixzigma <zixzi...@gmail.com> wrote:
>
> > g:InlineHyperLink, g:HyperLink and g:Anchor cannot contain an element
> > if I'm correct.
>
> > do you know how we can then wrap an image inside a hyperlink,
> > other than the approach below?
>
> > <g:HTMLPanel>
> > <a href="#mail/starred">
> > Home
> > <g:Image resource="{res.homeIcon}" />
> > </a>
> > </g:HTMLPanel>
--
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home