Four options are available: top, right, bottom, and left aligned.
Add data-placement="top"
to add top tooltip.
Add data-placement="right"
to add right tooltip.
Add data-placement="bottom"
to add bottom tooltip.
Add data-placement="left"
to add left tooltip.
Tooltip with light colored background, add .tooltip-light
class.
Add data-placement="top"
to add top tooltip.
Add data-placement="right"
to add right tooltip.
Add data-placement="bottom"
to add bottom tooltip.
Add data-placement="left"
to add left tooltip.
Tooltip is triggered using - click | hover | focus | manual options. You may pass multiple triggers; separate them with a space. "manual" cannot be combined with any other trigger.
Use data-trigger="click"
for click trigger.
Use data-trigger="focus"
for focus trigger.
Use data-trigger="hover"
for hover trigger. This is a default
trigger.
Use data-trigger="manual"
for manual trigger. You
show/hide using js
Use data-animation="false"
to remove fade animation. Default is
true.
Delay showing and hiding the tooltip (ms
) - does not apply to
manual trigger type.
This is considered a “manual” triggering of the tooltip. Tooltips with zero-length titles are never displayed.
Reveals an element’s tooltip. Returns to the caller before the tooltip has
actually been shown.(i.e. before the shown.bs.tooltip
event occurs)
Hides an element’s tooltip. Returns to the caller before the tooltip has
actually been hidden (i.e. before the hidden.bs.tooltip
event occurs).
Toggles an element’s tooltip. Returns to the caller before the tooltip has
actually been shown or hidden (i.e. before the shown.bs.tooltip
or
hidden.bs.tooltip
event occurs).
Hides and destroys an element’s tooltip. Tooltips that use delegation cannot be individually destroyed on descendant trigger elements.
This event fires immediately when the show
instance method is
called.
This event is fired when the tooltip has been made visible to the user (will wait for CSS transitions to complete).
This event is fired immediately when the hide
instance method
has been called.
This event is fired when the tooltip has finished being hidden from the user (will wait for CSS transitions to complete).