ButtonChooserOptions
Defined in: components/buttonChooser.ts:6
Options for buttonChooser.
Properties
Section titled “Properties”attrs?
Section titled “attrs?”
optionalattrs?:string
Defined in: components/buttonChooser.ts:8
Aberdeen attr/style string applied to the button group.
options
Section titled “options”options:
Record<string,Slot>
Defined in: components/buttonChooser.ts:14
The options to display, as a plain object mapping id → display label. Buttons appear in insertion order. A label may be a plain (rich-text) string, or a draw-function for custom content such as an icon.
bind:
Bindable<string>
Defined in: components/buttonChooser.ts:19
Two-way binding for the selected id, or undefined when nothing is selected.
Use an A.proxy or A.ref.
allowDeselect?
Section titled “allowDeselect?”
optionalallowDeselect?:boolean
Defined in: components/buttonChooser.ts:24
When true, clicking the already-selected button deselects it, setting
bind.value to undefined. Useful for “none / auto” states.
optionalname?:string
Defined in: components/buttonChooser.ts:26
Name attribute for the hidden <input>, enabling form submission.