Search
Tooltip.tooltipHiding Event
See Also
 






Raised when the ToolTip is hiding.

Namespace: MindFusion.Common.UI
File: Tooltip.js

 Syntax

JavaScript  Copy Code

EventDispatcher tooltipHiding

 Event Data

The event handler method receives the following arguments:
sender
A ToolTip instance, which is the source of the event. This object will be passed to the handler function as the first argument.
args
A ControlModifyingEventArgs instance, which contains event data. This object will be passed to the handler function as the second argument.

 Example

The following code creates a new instance of the ToolTip class associated with the HTMLElement of a Window and handles its tooltipHiding event:

JavaScript  Copy Code

var tooltip = new ui.Tooltip(window.element);
tooltip.trigger = ui.TooltipTrigger.Focus;
tooltip.position = ui.TooltipPosition.Cursor;
tooltip.text = "Map of the European Union";

tooltip.tooltipHiding.addEventListener(tooltipHidingEventHandler);


function tooltipHidingEventHandler(sender, args)
{
  if(sender == tooltip1)
      args.cancel = true; 
}

 See Also