profectus-docs/assets/api_data_common_functions_createCollapsibleModifierSections.md.DSiuzQqj.lean.js

1 line
3 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 t,c as a,a0 as o,o as r}from"./chunks/framework.P9qPzDnn.js";const u=JSON.parse('{"title":"Function: createCollapsibleModifierSections()","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/data/common/functions/createCollapsibleModifierSections.md","filePath":"api/data/common/functions/createCollapsibleModifierSections.md","lastUpdated":null}'),s={name:"api/data/common/functions/createCollapsibleModifierSections.md"};function n(i,e,c,l,d,p){return r(),a("div",null,e[0]||(e[0]=[o('<p><a href="./../../../">Profectus</a> / <a href="./../">data/common</a> / createCollapsibleModifierSections</p><h1 id="function-createcollapsiblemodifiersections" tabindex="-1">Function: createCollapsibleModifierSections() <a class="header-anchor" href="#function-createcollapsiblemodifiersections" aria-label="Permalink to &quot;Function: createCollapsibleModifierSections()&quot;"></a></h1><blockquote><p><strong>createCollapsibleModifierSections</strong>(<code>sectionsFunc</code>): [() =&gt; <a href="./../../../util/vue/type-aliases/Renderable"><code>Renderable</code></a>, <a href="./../../../game/persistence/type-aliases/Persistent"><code>Persistent</code></a>&lt;<a href="https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type" target="_blank" rel="noreferrer"><code>Record</code></a>&lt;<code>number</code>, <code>boolean</code>&gt;&gt;]</p></blockquote><p>Takes an array of modifier &quot;sections&quot;, and creates a JSXFunction that can render all those sections, and allow each section to be collapsed. Also returns a list of persistent refs that are used to control which sections are currently collapsed.</p><h2 id="parameters" tabindex="-1">Parameters <a class="header-anchor" href="#parameters" aria-label="Permalink to &quot;Parameters&quot;"></a></h2><h3 id="sectionsfunc" tabindex="-1">sectionsFunc <a class="header-anchor" href="#sectionsfunc" aria-label="Permalink to &quot;sectionsFunc&quot;"></a></h3><p>() =&gt; <a href="./../interfaces/Section"><code>Section</code></a>[]</p><p>A function that returns the sections to display.</p><h2 id="returns" tabindex="-1">Returns <a class="header-anchor" href="#returns" aria-label="Permalink to &quot;Returns&quot;"></a></h2><p>[() =&gt; <a href="./../../../util/vue/type-aliases/Renderable"><code>Renderable</code></a>, <a href="./../../../game/persistence/type-aliases/Persistent"><code>Persistent</code></a>&lt;<a href="https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type" target="_blank" rel="noreferrer"><code>Record</code></a>&lt;<code>number</code>, <code>boolean</code>&gt;&gt;]</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/data/common.tsx#L257" target="_blank" rel="noreferrer">profectus/src/data/common.tsx:257</a></p>',12)]))}const h=t(s,[["render",n]]);export{u as __pageData,h as default};