Folder
Organize multiple controls into a collapsable folder.
Wraps the Tweakpane addFolder
method.
May also be used to label and group multiple controls without user-collapsibility by setting userExpandable
to false
and expanded
to true.
Usage outside of a <Pane>
component will implicitly wrap the folder in <Pane position="inline">
.
<script lang="ts"> import { Button, Checkbox, Folder, Monitor } from 'svelte-tweakpane-ui';
let expanded = true; let count = 0;</script>
<Folder bind:expanded title="Reticulation Management Folder"> <Button on:click={() => count++} title="Increment" /> <Monitor value={count} label="Count" /></Folder>
<Checkbox bind:value={expanded} label="Expanded" />
optional | |
Description | Text in folder title bar. Unlike a |
---|---|
Type | string |
Default | 'Folder' |
optional | |
Description | Prevent interactivity and gray out the control. |
---|---|
Type | boolean |
Default | false |
bindableoptional | |
Description | Expand or collapse folder. When bound it will indicate whether the folder is expanded or collapsed. |
---|---|
Type | boolean |
Default | true |
optional | |
Description | Allow the user to be collapse and expand the folder by clicking its title bar. |
---|---|
Type | boolean |
Default | true |
optional | |
Description | Custom color scheme. |
---|---|
Type | Theme |
Default | undefined Inherits default Tweakpane theme equivalent to ThemeUtils.presets.standard , or the theme set with setGlobalDefaultTheme() . |
Description | Any Tweakpane component, except a |
---|---|
Type | {} |