Tuesday, February 11, 2014

Re: Insert Image into Textbox

You can do it using CSS:

textBox.getElement().getStyle().setBackgroundImage("url(/blah.png)");
textBox.getElement().getStyle().setProperty("backgroundPosition", "right center");
textBox.getElement().getStyle().setProperty("backgroundRepeat", "no-repeat");


On Sunday, March 16, 2008 8:07:05 AM UTC+11, MB wrote:
Hi,

I know the textbox widget sets String to show. But I want to put and
image instead of the String.
The image is not a specific one and changes dynamically.
Is there a way to do so? How?
Should I use different widget? Which one?

Thanks,
Matan

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment