PDA

View Full Version : Setting a tooltip to a html element



villagrad
22 Oct 2009, 7:09 PM
I was trying to set a tooltip to a html element, but i have to use a component object base class.

Someboy can help me to make the assigment?, i was trying something like this:


Element e = DOM.getElementById(elementId);
HtmlContainer h = new HtmlContainer(e);
ToolTip tp = new ToolTip((Component)e);
h.setToolTip("xxx");

but i think that this way is wrong.

Thanks!
Diego, GXT Begginer.

sven
23 Oct 2009, 1:43 AM
You can also use the QuickTip class and just assign an attribute to the elment.