PDA

View Full Version : Treeview Mouseover on examples.ext.net



tas
Oct 08, 2008, 9:30 AM
Hey guys,

I noticed the tooltip / mouseover on the treeview on http://examples.ext.net, and i have to say I like it! Will this be a feature of the Treeview when it is released??

Cheers, Tas

geoffrey.mcgill
Oct 08, 2008, 10:11 AM
Actually, the ToolTip functionality is already included with all Coolite Toolkit components. You can add a ToolTip to anything.

The summary ToolTip for the examples explorer is just a small chunk of html styled with css.
Example


<ToolTips>
<ext:ToolTip ID="ToolTip1" runat="server" Html="<div class='thumb-wrap' style='margin:0px;float:none;'><img src='' title='{1}'/><h4>{1}</h4><p>{2}</p>

" />
</ToolTips>

You would need to replace the numeric tokens with your own values, but basically that's how we added the feature.

The <ToolTips> will also be available on the <ext:TreePanel> when released with v0.7.

Hope this helps.