Gets or sets the text of the ToolTip.
Namespace: MindFusion.Common.UI
File: Tooltip.js
JavaScript Copy Code |
---|
get text() {} |
String. The text that is rendered as a tooltip.
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"; |