.uiTooltip()
Categories: UI
.uiTooltip( [ options ] )
Subclass: ep
Inherit: (Subclass: ep) .widget()
Plugin: ep.ui.tooltip
Description: Create a tooltip.
-
.uiTooltip( [ options ] )
version added: 6.11.0options A map of additional options pass to the method.
The .uiTooltip()
method create a tooltip from each element in the set of matched elements.
-
In this example a tooltip is created for the text above. The data-js attribute within a span tag is used to execute the tooltip. By hovering over the text the tooltip text appears and gets not hidden by click, because the interactive option is set to true. The parent div tag is the context element for the show/hide handling.
Code:
<div> some text <span class="Tooltip ep-js" data-js="ep.uiTooltip({'interactive' : true, 'context':'parent'});"> tooltip text </span> </div>
-
show
version added: 6.11.0This event is triggered when the tooltip was displayed.
-
hide
version added: 6.11.2This event is triggered when the tooltip was hidden.
-
show
-
.uiTooltip( 'show', [ callback ] )
version added: 6.11.0callback A method to execute after the tooltip was displayed (after animated show).
Call up a previously attached tooltip.
-
-
hide
-
.uiTooltip( 'hide', [ callback ] )
version added: 6.11.0callback A method to execute after the tooltip was hidden (after animated hide).
Hide a previously displayed tooltip.
-