1 line
3 KiB
JavaScript
1 line
3 KiB
JavaScript
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 "Function: createCollapsibleModifierSections()""></a></h1><blockquote><p><strong>createCollapsibleModifierSections</strong>(<code>sectionsFunc</code>): [() => <a href="./../../../util/vue/type-aliases/Renderable"><code>Renderable</code></a>, <a href="./../../../game/persistence/type-aliases/Persistent"><code>Persistent</code></a><<a href="https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type" target="_blank" rel="noreferrer"><code>Record</code></a><<code>number</code>, <code>boolean</code>>>]</p></blockquote><p>Takes an array of modifier "sections", 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 "Parameters""></a></h2><h3 id="sectionsfunc" tabindex="-1">sectionsFunc <a class="header-anchor" href="#sectionsfunc" aria-label="Permalink to "sectionsFunc""></a></h3><p>() => <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 "Returns""></a></h2><p>[() => <a href="./../../../util/vue/type-aliases/Renderable"><code>Renderable</code></a>, <a href="./../../../game/persistence/type-aliases/Persistent"><code>Persistent</code></a><<a href="https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type" target="_blank" rel="noreferrer"><code>Record</code></a><<code>number</code>, <code>boolean</code>>>]</p><h2 id="defined-in" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in" aria-label="Permalink to "Defined in""></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};
|