Flarum (v2.0.0-beta.5)
    Preparing search index...

    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.

    interface TooltipCreationOptions {
        delay?: number;
        html?: boolean;
        placement?: "top" | "bottom" | "left" | "right";
        title?: string;
        trigger?: "hover" | "hover focus";
    }
    Index

    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.

    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.

    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.