Home

# Class goog.ui.AdvancedTooltip

Advanced tooltip widget with cursor tracking abilities. Works like a regular tooltip but can track the cursor position and direction to determine if the tooltip should be dismissed or remain open.

extends goog.ui.Tooltip

Instance Method Summary
| `getCursorTracking() ⇒ boolean`
| `getCursorTrackingHideDelayMs() ⇒ number`
| `getHideDelayMs() ⇒ number` Override hide delay with cursor tracking hide delay while tracking.
| `getHotSpotPadding() ⇒ ?goog.math.Box`
| `handleMouseMove(?goog.events.BrowserEvent event)` Handler for mouse move events.
| `handleTooltipMouseOver(?goog.events.BrowserEvent event)` Handler for mouse over events for the tooltip element.
| `isCoordinateActive_(?goog.math.Coordinate coord) ⇒ boolean` Checks if supplied coordinate is in the tooltip, its triggering anchor, or a tooltip that has been triggered by a child of this tooltip. Called from handleMouseMove to determine if hide timer should be started, and from maybeHide to determine if tooltip should be hidden.
| `isCoordinateInTooltip(?goog.math.Coordinate coord) ⇒ boolean` Checks whether the supplied coordinate is inside the tooltip, including padding if any.
| `isMouseInTooltip() ⇒ boolean` Returns true if the mouse is in the tooltip.
| `maybeHide(?Element el)` Called by timer from mouse out handler. Hides tooltip if cursor is still outside element and tooltip.
| `onHide_(?Object= opt_target)` Called after the popup is hidden.
| `onShow_()` Called after the popup is shown.
| `resetHotSpot()` Forces the recalculation of the hotspot on the next mouse over event.
| `setCursorTracking(boolean b)` Sets whether to track the cursor and thereby close the tooltip if it moves away from the tooltip and keep it open if it moves towards it.
| `setCursorTrackingHideDelayMs(number delay)` Sets delay in milliseconds before tooltips are hidden if cursor tracking is enabled and the cursor is moving away from the tooltip.
| `setHotSpotPadding(?goog.math.Box= opt_box)` Sets margin around the tooltip where the cursor is allowed without dismissing the tooltip.