uiconfig.js API
    Preparing search index...

    Function setElementTooltip

    • Sets, changes or removes the tooltip of an element with a hook: nothing happens when the text and the hook are the same as last time; else the previous tooltip is removed (the function that its hook returned) and the hook is called with the new text. No hook or no text: the tooltip is removed.

      Parameters

      • hook: UiTooltipHook | undefined

        the hook (renderer.tooltipHook), or none

      • element: HTMLElement

        the element

      • Optionaltext: string

        the text of the tooltip, or none to remove it

      • Optionalinfo: Partial<UiTooltipInfo>

        the label (default: the text), the key and needed (default: always)

      Returns void