profectus-docs/assets/api_game_boards_board_functions_setupDraggableNode.md.D_5xnJn-.lean.js

1 line
2.4 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 a,c as o,a0 as r,o as t}from"./chunks/framework.P9qPzDnn.js";const b=JSON.parse('{"title":"Function: setupDraggableNode()","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/game/boards/board/functions/setupDraggableNode.md","filePath":"api/game/boards/board/functions/setupDraggableNode.md","lastUpdated":null}'),d={name:"api/game/boards/board/functions/setupDraggableNode.md"};function n(s,e,i,l,p,c){return t(),o("div",null,e[0]||(e[0]=[r('<p><a href="./../../../../">Profectus</a> / <a href="./../">game/boards/board</a> / setupDraggableNode</p><h1 id="function-setupdraggablenode" tabindex="-1">Function: setupDraggableNode() <a class="header-anchor" href="#function-setupdraggablenode" aria-label="Permalink to &quot;Function: setupDraggableNode()&quot;"></a></h1><blockquote><p><strong>setupDraggableNode</strong>&lt;<code>T</code>&gt;(<code>options</code>): <a href="./../interfaces/DraggableNode"><code>DraggableNode</code></a>&lt;<code>T</code>&gt;</p></blockquote><p>Sets up a system to allow nodes to be moved within a board by dragging and dropping. Also allows for dropping nodes on other nodes to trigger code.</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><h2 id="parameters" tabindex="-1">Parameters <a class="header-anchor" href="#parameters" aria-label="Permalink to &quot;Parameters&quot;"></a></h2><h3 id="options" tabindex="-1">options <a class="header-anchor" href="#options" aria-label="Permalink to &quot;options&quot;"></a></h3><p><a href="./../interfaces/DraggableNodeOptions"><code>DraggableNodeOptions</code></a>&lt;<code>T</code>&gt;</p><p>Draggable node options.</p><h2 id="returns" tabindex="-1">Returns <a class="header-anchor" href="#returns" aria-label="Permalink to &quot;Returns&quot;"></a></h2><p><a href="./../interfaces/DraggableNode"><code>DraggableNode</code></a>&lt;<code>T</code>&gt;</p><p>A DraggableNode object.</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#L94" target="_blank" rel="noreferrer">profectus/src/game/boards/board.tsx:94</a></p>',15)]))}const u=a(d,[["render",n]]);export{b as __pageData,u as default};