profectus-docs/assets/api_game_boards_board_functions_makeDraggable.md.CKUmCd4B.lean.js

1 line
2.6 KiB
JavaScript
Raw Permalink 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 a,c as r,a0 as t,o}from"./chunks/framework.P9qPzDnn.js";const u=JSON.parse('{"title":"Function: makeDraggable()","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/game/boards/board/functions/makeDraggable.md","filePath":"api/game/boards/board/functions/makeDraggable.md","lastUpdated":null}'),n={name:"api/game/boards/board/functions/makeDraggable.md"};function s(d,e,i,l,c,g){return o(),r("div",null,e[0]||(e[0]=[t('<p><a href="./../../../../">Profectus</a> / <a href="./../">game/boards/board</a> / makeDraggable</p><h1 id="function-makedraggable" tabindex="-1">Function: makeDraggable() <a class="header-anchor" href="#function-makedraggable" aria-label="Permalink to &quot;Function: makeDraggable()&quot;"></a></h1><blockquote><p><strong>makeDraggable</strong>&lt;<code>T</code>, <code>S</code>&gt;(<code>element</code>, <code>optionsFunc</code>): <code>asserts element is VueFeature &amp; { draggable: Draggable&lt;T&gt; }</code></p></blockquote><p>Makes a vue feature draggable on a Board.</p><h2 id="type-parameters" tabindex="-1">Type Parameters <a class="header-anchor" href="#type-parameters" aria-label="Permalink to &quot;Type Parameters&quot;"></a></h2><p>• <strong>T</strong></p><p>• <strong>S</strong> <em>extends</em> <a href="./../interfaces/MakeDraggableOptions"><code>MakeDraggableOptions</code></a>&lt;<code>T</code>&gt;</p><h2 id="parameters" tabindex="-1">Parameters <a class="header-anchor" href="#parameters" aria-label="Permalink to &quot;Parameters&quot;"></a></h2><h3 id="element" tabindex="-1">element <a class="header-anchor" href="#element" aria-label="Permalink to &quot;element&quot;"></a></h3><p><a href="./../../../../util/vue/interfaces/VueFeature"><code>VueFeature</code></a></p><p>The vue feature to make draggable.</p><h3 id="optionsfunc" tabindex="-1">optionsFunc <a class="header-anchor" href="#optionsfunc" aria-label="Permalink to &quot;optionsFunc&quot;"></a></h3><p>() =&gt; <code>S</code></p><p>The options to configure the dragging behavior.</p><h2 id="returns" tabindex="-1">Returns <a class="header-anchor" href="#returns" aria-label="Permalink to &quot;Returns&quot;"></a></h2><p><code>asserts element is VueFeature &amp; { draggable: Draggable&lt;T&gt; }</code></p><h2 id="defined-in" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in" aria-label="Permalink to &quot;Defined in&quot;"></a></h2><p><a href="https://code.incremental.social/profectus/Profectus/src/branch/main/src/game/boards/board.tsx#L271" target="_blank" rel="noreferrer">profectus/src/game/boards/board.tsx:271</a></p>',18)]))}const m=a(n,[["render",s]]);export{u as __pageData,m as default};