How to create ImageElement in UiBinder from ImageResource
88 views
Skip to first unread message
Jonas
unread,
Aug 24, 2012, 7:44:01 AM8/24/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-we...@googlegroups.com
Hi,
I'm trying to move as much of my widgets into native HTML elements, for example InlineLabel to <span> and so on. But how do you use the <img> element in the most efficient way in UiBinder with an ImageResource from a ClientBundle? Do I have to set the class as a style defined with @sprite for this to work?
Thomas Broyer
unread,
Aug 24, 2012, 7:48:59 AM8/24/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-we...@googlegroups.com
Yes.
Either that (and then use a <span> or <div> rather than an <img>) or use a DataResource (<ui:data>) instead.