Search
Tooltip.trigger Property
See Also
 






Gets or sets the event, which shows the ToolTip.

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

 Syntax

JavaScript  Copy Code

get trigger() {}

 Property Value

TooltipTrigger. One of the TooltipTrigger enumeration values.

 Example

The following code creates a new instance of the ToolTip class associated with the HTMLElement of a diagram and sets its trigger property.

JavaScript  Copy Code
var tooltip = new ui.Tooltip(diagram._element);
tooltip.trigger = ui.TooltipTrigger.Focus;
tooltip.position = ui.TooltipPosition.Cursor;
tooltip.text = "Map of the European Union";

 See Also