Trilium Frontend API
    Preparing search index...

    Class Tooltip

    Base Component

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    DATA_KEY: string
    Default: Options

    Default settings of this plugin

    DefaultType: Record<keyof Options, string>
    Event: Record<
        | "CLICK"
        | "FOCUSIN"
        | "FOCUSOUT"
        | "HIDDEN"
        | "HIDE"
        | "INSERTED"
        | "MOUSEENTER"
        | "MOUSELEAVE"
        | "SHOW"
        | "SHOWN",
        string,
    >
    EVENT_KEY: string
    getOrCreateInstance: GetOrCreateInstanceFactory<Tooltip>

    Static method which allows you to get the tooltip instance associated with a DOM element, or create a new one in case it wasn’t initialised

    NAME: "tooltip"
    VERSION: string

    Version of this plugin

    Methods

    • Removes the ability for an element’s tooltip to be shown. The tooltip will only be able to be shown if it is re-enabled.

      Returns void

    • Destroys an element's.

      Returns void

    • Gives an element’s tooltip the ability to be shown. Tooltips are enabled by default.

      Returns void

    • 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). This is considered a “manual” triggering of the tooltip.

      Returns void

    • Gives a way to change the tooltip’s content after its initialization.

      Parameters

      Returns void

    • 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). This is considered a “manual” triggering of the tooltip. Tooltips with zero-length titles are never displayed.

      Returns void

    • 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). This is considered a “manual” triggering of the tooltip.

      Parameters

      • Optionalevent: any

      Returns void

    • Toggles the ability for an element’s tooltip to be shown or hidden.

      Returns void

    • Updates the position of an element’s tooltip.

      Returns void