API Docs for: 2.10.19
Show:

oreesh-tooltip Class

A tooltip

// Can be created dynamically
var tooltip = new OreeshTooltip();


<!-- Or via HTML -->
<!-- Basic example -->
<oreesh-tooltip label="Don't forget an umbrealla!">
    Hover over me for a tip
</oreesh-tooltip>

<!-- No arrow on tooltip -->
<oreesh-tooltip label="No arrow!" no-arrow>
    Hover here
</oreesh-tooltip>

<!-- Positioning the tooltip on the right -->
<oreesh-tooltip label="I'm on the top and growing to the left" position="top-left">
    Hover here
</oreesh-tooltip>
<br><br><br><br><br>

<!-- Using a custom div for the tooltip -->
<oreesh-tooltip tip-attribute="extratip">
    Hover here
    <div extratip>
        <img src="image.png">With Image!
    </div>
</oreesh-tooltip>

<!-- No event & visible -->
<oreesh-tooltip label="always visible!" no-event visible>
    tooltip content
</oreesh-tooltip>

<!-- No hover -->
<oreesh-tooltip label="no Hover" no-hover>
    tooltip content
</oreesh-tooltip>

Methods

hide

()

tooltip message hide.

reposition

()

Recalculates the position of the tooltip and the arrow.

show

()

tooltip message show.

Attributes

label

The text that is presented in the tooltip. Text will not be presented if a tip-attribute is being used.

no-arrow

Boolean

Hide tooltip arrow

no-event

Boolean

Prevent tooltip event(contains hover and inner content event)

no-hover

Boolean

Prevent tooltip hover event

position

Sets the position of the tooltip, relative to the container. Possible values are top-left, top-center, top-right, bottom-left, bottom-center, and bottom-right

Default: top-center

tip-attribute

Specifies a div for a custom tooltip. This will cover over any label.

visible

Boolean

Always Show tooltip.