profectus-docs/assets/api_modules_features_tooltips_tooltip.md.25104fdf.js

1 line
8 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{_ as e,c as t,o,N as a}from"./chunks/framework.0799945b.js";const m=JSON.parse('{"title":"Module: features/tooltips/tooltip","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/modules/features/tooltips/tooltip.md","lastUpdated":null}'),l={name:"api/modules/features/tooltips/tooltip.md"},d=a('<h1 id="module-features-tooltips-tooltip" tabindex="-1">Module: features/tooltips/tooltip <a class="header-anchor" href="#module-features-tooltips-tooltip" aria-label="Permalink to &quot;Module: features/tooltips/tooltip&quot;"></a></h1><h2 id="components" tabindex="-1">Components <a class="header-anchor" href="#components" aria-label="Permalink to &quot;Components&quot;"></a></h2><ul><li><a href="./TooltipComponent">Tooltip</a></li></ul><h2 id="interfaces" tabindex="-1">Interfaces <a class="header-anchor" href="#interfaces" aria-label="Permalink to &quot;Interfaces&quot;"></a></h2><ul><li><a href="../../../interfaces/features/tooltips/tooltip.BaseTooltip">BaseTooltip</a></li><li><a href="../../../interfaces/features/tooltips/tooltip.TooltipOptions">TooltipOptions</a></li></ul><h2 id="type-aliases" tabindex="-1">Type Aliases <a class="header-anchor" href="#type-aliases" aria-label="Permalink to &quot;Type Aliases&quot;"></a></h2><h3 id="generictooltip" tabindex="-1">GenericTooltip <a class="header-anchor" href="#generictooltip" aria-label="Permalink to &quot;GenericTooltip&quot;"></a></h3><p>Ƭ <strong>GenericTooltip</strong>: <a href="./../feature#replace"><code>Replace</code></a>&lt;<a href="./tooltip#tooltip"><code>Tooltip</code></a>&lt;<a href="../../../interfaces/features/tooltips/tooltip.TooltipOptions"><code>TooltipOptions</code></a>&gt;, { <code>direction</code>: <a href="./../../util/computed#processedcomputable"><code>ProcessedComputable</code></a>&lt;<a href="../../../enums/util/common.Direction"><code>Direction</code></a>&gt; ; <code>pinnable</code>: <code>boolean</code> ; <code>pinned</code>: <code>Ref</code>&lt;<code>boolean</code>&gt; | <code>undefined</code> }&gt;</p><p>A type that matches any valid <a href="./tooltip#tooltip">Tooltip</a> object.</p><h4 id="defined-in" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in" aria-label="Permalink to &quot;Defined in&quot;"></a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/70cda5f/src/features/tooltips/tooltip.ts#L67" target="_blank" rel="noreferrer">profectus/src/features/tooltips/tooltip.ts:67</a></p><hr><h3 id="tooltip" tabindex="-1">Tooltip <a class="header-anchor" href="#tooltip" aria-label="Permalink to &quot;Tooltip&quot;"></a></h3><p>Ƭ <strong>Tooltip</strong>&lt;<code>T</code>&gt;: <a href="./../feature#replace"><code>Replace</code></a>&lt;<code>T</code> &amp; <a href="../../../interfaces/features/tooltips/tooltip.BaseTooltip"><code>BaseTooltip</code></a>, { <code>classes</code>: <a href="./../../util/computed#getcomputabletype"><code>GetComputableType</code></a>&lt;<code>T</code>[<code>&quot;classes&quot;</code>]&gt; ; <code>direction</code>: <a href="./../../util/computed#getcomputabletypewithdefault"><code>GetComputableTypeWithDefault</code></a>&lt;<code>T</code>[<code>&quot;direction&quot;</code>], <a href="./../../../enums/util/common.Direction#up"><code>Up</code></a>&gt; ; <code>display</code>: <a href="./../../util/computed#getcomputabletype"><code>GetComputableType</code></a>&lt;<code>T</code>[<code>&quot;display&quot;</code>]&gt; ; <code>pinnable</code>: <code>T</code>[<code>&quot;pinnable&quot;</code>] extends <code>undefined</code> ? <code>false</code> : <code>T</code>[<code>&quot;pinnable&quot;</code>] ; <code>pinned</code>: <code>T</code>[<code>&quot;pinnable&quot;</code>] extends <code>true</code> ? <code>Ref</code>&lt;<code>boolean</code>&gt; : <code>undefined</code> ; <code>style</code>: <a href="./../../util/computed#getcomputabletype"><code>GetComputableType</code></a>&lt;<code>T</code>[<code>&quot;style&quot;</code>]&gt; ; <code>xoffset</code>: <a href="./../../util/computed#getcomputabletype"><code>GetComputableType</code></a>&lt;<code>T</code>[<code>&quot;xoffset&quot;</code>]&gt; ; <code>yoffset</code>: <a href="./../../util/computed#getcomputabletype"><code>GetComputableType</code></a>&lt;<code>T</code>[<code>&quot;yoffset&quot;</code>]&gt; }&gt;</p><p>An object that represents a tooltip that appears when hovering over an element.</p><h4 id="type-parameters" tabindex="-1">Type parameters <a class="header-anchor" href="#type-parameters" aria-label="Permalink to &quot;Type parameters&quot;"></a></h4><table><thead><tr><th style="text-align:left;">Name</th><th style="text-align:left;">Type</th></tr></thead><tbody><tr><td style="text-align:left;"><code>T</code></td><td style="text-align:left;">extends <a href="../../../interfaces/features/tooltips/tooltip.TooltipOptions"><code>TooltipOptions</code></a></td></tr></tbody></table><h4 id="defined-in-1" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-1" aria-label="Permalink to &quot;Defined in&quot;"></a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/70cda5f/src/features/tooltips/tooltip.ts#L52" target="_blank" rel="noreferrer">profectus/src/features/tooltips/tooltip.ts:52</a></p><h2 id="functions" tabindex="-1">Functions <a class="header-anchor" href="#functions" aria-label="Permalink to &quot;Functions&quot;"></a></h2><h3 id="addtooltip" tabindex="-1">addTooltip <a class="header-anchor" href="#addtooltip" aria-label="Permalink to &quot;addTooltip&quot;"></a></h3><p>▸ <strong>addTooltip</strong>&lt;<code>T</code>&gt;(<code>element</code>, <code>options</code>): <a href="./tooltip#tooltip"><code>Tooltip</code></a>&lt;<code>T</code>&gt;</p><p>Creates a tooltip on the given element with the given options.</p><h4 id="type-parameters-1" tabindex="-1">Type parameters <a class="header-anchor" href="#type-parameters-1" aria-label="Permalink to &quot;Type parameters&quot;"></a></h4><table><thead><tr><th style="text-align:left;">Name</th><th style="text-align:left;">Type</th></tr></thead><tbody><tr><td style="text-align:left;"><code>T</code></td><td style="text-align:left;">extends <a href="../../../interfaces/features/tooltips/tooltip.TooltipOptions"><code>TooltipOptions</code></a></td></tr></tbody></table><h4 id="parameters" tabindex="-1">Parameters <a class="header-anchor" href="#parameters" aria-label="Permalink to &quot;Parameters&quot;"></a></h4><table><thead><tr><th style="text-align:left;">Name</th><th style="text-align:left;">Type</th><th style="text-align:left;">Description</th></tr></thead><tbody><tr><td style="text-align:left;"><code>element</code></td><td style="text-align:left;"><a href="../../../interfaces/util/vue.VueFeature"><code>VueFeature</code></a></td><td style="text-align:left;">The renderable feature to display the tooltip on.</td></tr><tr><td style="text-align:left;"><code>options</code></td><td style="text-align:left;"><code>T</code> &amp; <a href="https://www.typescriptlang.org/docs/handbook/utility-types.html#thistypetype" target="_blank" rel="noreferrer"><code>ThisType</code></a>&lt;<a href="./tooltip#tooltip"><code>Tooltip</code></a>&lt;<code>T</code>&gt;&gt; &amp; <a href="https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype" target="_blank" rel="noreferrer"><code>Partial</code></a>&lt;<a href="../../../interfaces/features/tooltips/tooltip.BaseTooltip"><code>BaseTooltip</code></a>&gt;</td><td style="text-align:left;">Tooltip options.</td></tr></tbody></table><h4 id="returns" tabindex="-1">Returns <a class="header-anchor" href="#returns" aria-label="Permalink to &quot;Returns&quot;"></a></h4><p><a href="./tooltip#tooltip"><code>Tooltip</code></a>&lt;<code>T</code>&gt;</p><h4 id="defined-in-2" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-2" aria-label="Permalink to &quot;Defined in&quot;"></a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/70cda5f/src/features/tooltips/tooltip.ts#L81" target="_blank" rel="noreferrer">profectus/src/features/tooltips/tooltip.ts:81</a></p>',31),i=[d];function r(c,p,s,n,h,u){return o(),t("div",null,i)}const b=e(l,[["render",r]]);export{m as __pageData,b as default};