profectus-docs/assets/api_game_layers_functions_setupLayerModal.md.C9ClppOt.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 t,a0 as o,o as r}from"./chunks/framework.P9qPzDnn.js";const h=JSON.parse('{"title":"Function: setupLayerModal()","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/game/layers/functions/setupLayerModal.md","filePath":"api/game/layers/functions/setupLayerModal.md","lastUpdated":null}'),n={name:"api/game/layers/functions/setupLayerModal.md"};function l(s,e,d,i,c,u){return r(),t("div",null,e[0]||(e[0]=[o('<p><a href="./../../../">Profectus</a> / <a href="./../">game/layers</a> / setupLayerModal</p><h1 id="function-setuplayermodal" tabindex="-1">Function: setupLayerModal() <a class="header-anchor" href="#function-setuplayermodal" aria-label="Permalink to &quot;Function: setupLayerModal()&quot;"></a></h1><blockquote><p><strong>setupLayerModal</strong>(<code>layer</code>): <code>object</code></p></blockquote><p>Utility function for creating a modal that display&#39;s a <a href="./../interfaces/LayerOptions#display">LayerOptions.display</a>. Returns the modal itself, which can be rendered anywhere you need, as well as a function to open the modal.</p><h2 id="parameters" tabindex="-1">Parameters <a class="header-anchor" href="#parameters" aria-label="Permalink to &quot;Parameters&quot;"></a></h2><h3 id="layer" tabindex="-1">layer <a class="header-anchor" href="#layer" aria-label="Permalink to &quot;layer&quot;"></a></h3><p><a href="./../interfaces/Layer"><code>Layer</code></a></p><p>The layer to display in the modal.</p><h2 id="returns" tabindex="-1">Returns <a class="header-anchor" href="#returns" aria-label="Permalink to &quot;Returns&quot;"></a></h2><p><code>object</code></p><h3 id="modal" tabindex="-1">modal() <a class="header-anchor" href="#modal" aria-label="Permalink to &quot;modal()&quot;"></a></h3><blockquote><p><strong>modal</strong>: () =&gt; <code>JSX.Element</code></p></blockquote><h4 id="returns-1" tabindex="-1">Returns <a class="header-anchor" href="#returns-1" aria-label="Permalink to &quot;Returns&quot;"></a></h4><p><code>JSX.Element</code></p><h3 id="openmodal" tabindex="-1">openModal <a class="header-anchor" href="#openmodal" aria-label="Permalink to &quot;openModal&quot;"></a></h3><blockquote><p><strong>openModal</strong>: <code>VoidFunction</code></p></blockquote><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/layers.tsx#L371" target="_blank" rel="noreferrer">profectus/src/game/layers.tsx:371</a></p>',18)]))}const m=a(n,[["render",l]]);export{h as __pageData,m as default};