List
An option list picker, similar to an HTML <select>
element.
Wraps Tweakpane's list blade. See Tweakpane's documentation for list blades.
Svelte Tweakpane UI extends Tweakpane's underlying implementation to allow for arbitrary arrays of values to be used as options. See the ListOptions
type for details on how to provide specific labels to options.
Tweakpane's addBlade
list variations is used instead of the addBinding
method to allow for additional value types. The value
remains bindable via Svelte's reactivity.
Usage outside of a <Pane>
component will implicitly wrap the color picker in <Pane position="inline">
.
Selected Option: 1
bindablerequired | |
Description | Value of the selected |
---|---|
Type | unknown |
optional | |
Description | Text displayed next to list. |
---|---|
Type | string |
Default | undefined |
required | |
Description | A collection of options to select from. The arbitrary array list type is a convenience addition to to the vanilla JS Tweakpane API. |
---|---|
Type | ListOptions<unknown> |
optional | |
Description | Prevent interactivity and gray out the control. |
---|---|
Type | boolean |
Default | false |
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 | Fires when This event is provided for advanced use cases. It's usually preferred to bind to the The |
---|---|
Extends | ValueChangeEvent |
Type | ListChangeEvent |