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
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
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.

Reply all
Reply to author
Forward
0 new messages