This is an interface and should not be constructed.
Methods
-
containWithin(container) → {module:br/presenter/control/tooltip/TooltipHelper}
-
Sets the container element in which the tooltip will be contained.
Parameters:
Name Type Description container
DOMElement The container element. Returns:
Returns the `this` pointer, so calls can be chained. -
pointTo(errorElement) → {module:br/presenter/control/tooltip/TooltipHelper}
-
Creates the tooltip and points it to the passed in errorElement.
Parameters:
Name Type Description errorElement
DOMElement The element to which the tooltip will 'point to'. Returns:
Returns the `this` pointer, so calls can be chained. -
remove()
-
Removes the tooltip element from the DOM.
-
updateTooltip(message) → {module:br/presenter/control/tooltip/TooltipHelper}
-
Sets new text for the tooltip.
Parameters:
Name Type Description message
String The message to display in the tooltip. Returns:
Returns the `this` pointer, so calls can be chained.