Search
Tooltip.tooltipShow Event
See Also
 






Raised when the Tooltip is shown.

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

 Syntax

JavaScript  Copy Code

EventDispatcher tooltipShow

 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 ControlModifiedEventArgs 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 tooltipShow 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.tooltipShow.addEventListener(tooltipShowEventHandler);


function tooltipShowEventHandler(sender, args)
{
  if(sender == tooltip1)
   //event handling code comes here 
}

 See Also