This is an interface and should not be constructed.
Methods
contain Within(container) → {module:br-presenter /control /tooltip /Tooltip Helper}
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.
point To(error Element) → {module:br-presenter /control /tooltip /Tooltip Helper}
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.
update Tooltip(message) → {module:br-presenter /control /tooltip /Tooltip Helper}
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.