Search
Tooltip.offset Property
See Also
 






Gets or sets the offset of the Tooltip.

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

 Syntax

JavaScript  Copy Code

get offset() {}

 Property Value

Point. A Point instance representing the horizontal and vertical offset.

 Example

The following code creates a new instance of the Tooltip class associated with the HTMLElement of a Window and sets its offset property:

JavaScript  Copy Code
var tooltip = new ui.Tooltip(window.element);
tooltip.trigger = ui.TooltipTrigger.Focus;
tooltip.position = ui.TooltipPosition.Cursor;
tooltip.text = "Map of the European Union";
tooltip.offset = new Point(10, 10);

 See Also