I want to show an icon right next to a link.
However after spending a lot of time,
could not make it work.
public interface Resources extends ClientBundle {
@Source("homeIcon.png")
ImageResource myIcon();
}
and UiBinder:
on the top
<ui:with field='res' type='package.of.Resources'/>
and the link with icon next to it:
<g:FlowPanel>
<g:InlineHyperlink .....>
<g:InlineHyperlink text="Home" targetHistoryToken="home" />
<g:Image resource='{res.homeIcon}' />
<g:InlineHyperlink .....>
</g:FlowPanel>
the above markup would create a vertical list (similar to <ul> <li> )
the problem s that the image is shown on a line of its own,
not next to the hyperlink. I believe this makes sense because
they are inside a FlowPanel and this is how FlowPanel lays out its
items.
however, i tried to wrap the pair (home link and home icon) in a
container,
but couldnt get the behaviour expected.
does anyone have any idea how I can get this to show correctly ?
what I want is this:
HomeLink Home Icon
Link#2 Icon#2
Link#3 Icon#3
a vertical list, each line having two items
Link + Icon
preferably without using flextable, html table.
thank you
--
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.