Gets or sets the offset of the Tooltip.
Namespace: MindFusion.Common.UI
File: Tooltip.js
SyntaxJavaScript
Copy Code
|
|---|
get offset() {} |
Point. A Point instance representing the horizontal and vertical offset.
ExampleThe 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