Class type Goog.Ui.tooltip
class type tooltip = object..end
Inherits
- Goog.Ui.popupReturns the dom helper that is being used on this component.
method getDomHelper : Goog.Gdom.domHelper Js.meth
Attach to element. Tooltip will be displayed when the cursor is over the element or when the element has been active for a few milliseconds.
method attach :
'a.
((#Dom_html.element as 'a) Js.t, Js.js_string Js.t) Goog.Tools.Union.t ->
unit Js.meth
method detach :
'b.
((#Dom_html.element as 'b) Js.t, Js.js_string Js.t) Goog.Tools.Union.t
Js.opt -> unit Js.meth
Detach from element(s).
method setshowDelayMs : int -> unit Js.meth
Sets delay in milliseconds before tooltip is displayed for an element.
method getShowDelayMs : int Js.meth
Returns the delay in milliseconds before tooltip is displayed for an element.
method setHideDelayMs : int -> unit Js.meth
Sets delay in milliseconds before tooltip is hidden once the cursor leaves the element.
method getHideDelayMs : int Js.meth
Returns the delay in milliseconds before tooltip is hidden once the cursor leaves the element.
method setText : Js.js_string Js.t -> unit Js.meth
Sets tooltip message as plain text.
method setHtml : Js.js_string Js.t -> unit Js.meth
Sets tooltip message as HTML markup.
method setElement : 'c. (#Dom_html.element as 'c) Js.t -> unit Js.meth
Sets tooltip element.
method getText : Js.js_string Js.t Js.meth
Returns the tooltip message as plain text.
method getHtml : Js.js_string Js.t Js.meth
The tooltip message as HTML.
method getState : state Js.meth
Returns current state of tooltip.
method setRequireInteraction : bool Js.t -> unit Js.meth
Sets whether tooltip requires the mouse to have moved or the anchor receive focus before the tooltip will be shown.
method isCoordinateInTooltip :
Goog.Math.coordinate Js.t -> bool Js.t Js.meth
Returns true if the coord is in the tooltip.
method maybeShow :
'd.
(#Dom_html.element as 'd) Js.t ->
Goog.Positioning.abstractPosition Js.t Js.opt -> unit Js.meth
Called by timer from mouse over handler. Shows tooltip if cursor is still over the same element.
method showForElement :
'e.
(#Dom_html.element as 'e) Js.t ->
Goog.Positioning.abstractPosition Js.t Js.opt -> unit Js.meth
Shows tooltip for a specific element.
method maybeHide : 'f. (#Dom_html.element as 'f) Js.t -> unit Js.meth
Called by timer from mouse out handler. Hides tooltip if cursor is still outside element and tooltip, or if a child of tooltip has the focus.
method hasActiveChild : bool Js.meth
Returns whether tooltip element contains an active child tooltip, and should thus not be hidden. When the child tooltip is hidden, it will check if the parent should be hidden too.
method disposeInternal : unit Js.meth
Destroys widget and removes all event listeners.
method className : Js.js_string Js.t Js.prop
Css class name for tooltip
