Search
Tooltip.text Property
See Also
 






Gets or sets the text of the ToolTip.

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

 Syntax

JavaScript  Copy Code

get text() {}

 Property Value

String. The text that is rendered as a tooltip.

 Example

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

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

 See Also