Gets or sets the event, which shows the ToolTip.
Namespace: MindFusion.Common.UI
File: Tooltip.js
JavaScript Copy Code |
---|
get trigger() {} |
TooltipTrigger. One of the TooltipTrigger enumeration values.
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"; |