Gets or sets the position of the Tooltip.
Namespace: MindFusion.Common.UI
File: Tooltip.js
The following code creates a new instance of the ToolTip class associated with the HTMLElement of a diagram. It sets its position property to TooltipPosition.Cursor.
JavaScript Copy Code |
---|
var tooltip = new ui.Tooltip(diagram._element); tooltip.trigger = ui.TooltipTrigger.None; tooltip.position = ui.TooltipPosition.Cursor; tooltip.theme = "standard"; |