Interface TooltipCreationOptions

Selection of options accepted by Bootstrap's tooltips.


Not all options are present from Bootstrap to discourage the use of options that will be deprecated in the future.

More commonly used options that will be deprecated remain, but are marked as such.

See

https://getbootstrap.com/docs/3.3/javascript/#tooltips-options

Hierarchy

  • TooltipCreationOptions

Properties

delay?: number

Sets the delay between a trigger state occurring and the tooltip appearing on-screen.


Warning: this option will be removed when we switch to CSS-only tooltips.

Deprecated

html?: boolean

Whether HTML content is allowed in the tooltip.


Warning: this is a possible XSS attack vector. This option shouldn't be used wherever possible, and will not work when we migrate to CSS-only tooltips.

Deprecated

placement?: "top" | "bottom" | "left" | "right"

Tooltip position around the target element.

title?: string

Value used if no title attribute is present on the HTML element.

If a function is given, it will be called with its this reference set to the element that the tooltip is attached to.

trigger?: "hover" | "hover focus"

How the tooltip is triggered.

Either on hover, on hover focus (either of the two).


Warning: manual, click and focus on its own are deprecated options which will not be supported in the future.

Generated using TypeDoc v0.23.24