uiconfig.js API
    Preparing search index...

    Interface UiTooltipInfo

    What a UiTooltipHook gets besides the text

    interface UiTooltipInfo {
        label: string;
        needed: () => boolean;
        shortcut?: string;
    }
    Index
    label: string

    The label of the config (or of the element, like "More actions")

    needed: () => boolean

    Whether the tooltip adds something now (the label is hidden, or there is a key). A hook that shows its tooltip on hover can check it then (e.g. tippy.js onShow). Always true where the label is never shown (an icon-only button).

    shortcut?: string

    Its key, when the renderer shows one (uiconfig.js/dom: shortcutOf)