Search
TooltipPosition Enumeration
See Also
 






Specifies the position of a tooltip relative to its target element.

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

 Syntax

JavaScript  Copy Code

// enum
TooltipPosition = {}

 Members

  Member name Value Description

Bottom

3

Indicates that the tooltip will be shown below the target element.

Center

4

Indicates that the tooltip will be shown at the center of the target element.

Cursor

5

Indicates that the tooltip will be shown at the position of the mouse cursor.

Left

0

Indicates that the tooltip will be shown at the left side of the target element.

Right

1

Indicates that the tooltip will be shown at the right side of the target element.

Top

2

Indicates that the tooltip will be shown above the target element.

 Example

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";

 See Also