[CLOSED] How to hide empty ToolTip?
Hi,
Is it possible not to display an empty ToolTip? Here's the setup on my page. If the DisplayField1 element is empty, I'd like to prevent the ToolTip from showing up. It should be available if a non-empty value does exist though.
Code:
<ext:DisplayField ID="DisplayField1" runat="server">
<ToolTips>
<ext:ToolTip ID="ToolTip1" runat="server">
<Listeners>
<Show Fn="showToolTip" />
</Listeners>
</ext:ToolTip>
</ToolTips>
</ext:DisplayField>
var showToolTip = function () {
this.body.dom.innerHTML = "<b>" + DisplayField1.getValue() + "</b>";
};