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